Welcome! Log In Create A New Profile

Advanced

Cкачиваются php файлы

jm
August 01, 2013 07:06AM
Привет, настроил по этой инструкции - http://forum.ubuntu.ru/index.php?topic=70057.0 домен, и при переходе например по ссылке domain2.com/info.php предлагается сохранить php файл.
В access.log пишет 127.0.0.1 - - [31/Jul/2013:23:01:46 +0300] "GET /info.php HTTP/1.1" 200 128 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0"

Вот /etc/ngnix/sites-available/domain2.com

server {

listen 80;
server_name www.domain2.com;
rewrite ^/(.*) http://domain2.com/$1 permanent;

}


server {

listen 80;
server_name domain2.com;


access_log /home/jm/public_html/domain2.com/log/access.log;
error_log /home/jm/public_html/domain2.com/log/error.log;

location / {

root /home/jm/public_html/domain2.com/public/;
index index.php index.html index.htm;

}


}






localhost/info.php работает нормально, настраивал по этой инструкции - http://www.howtoforge.com/installing-nginx-with-php5-and-php-fpm-and-mysql-support-lemp-on-ubuntu-13.04
В access.log пишет 127.0.0.1 - - [01/Aug/2013:13:29:58 +0300] "GET /info.php?jhjh HTTP/1.1" 200 13436 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - - [01/Aug/2013:13:29:58 +0300] "GET /info.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2536 "http://localhost/info.php?jhjh" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - - [01/Aug/2013:13:29:58 +0300] "GET /info.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2158 "http://localhost/info.php?jhjh" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - - [01/Aug/2013:13:30:04 +0300] "-" 400 0 "-" "-"


Вот /etc/ngnix/sites-available/default



server {
listen 80;
listen [::]:80 default_server ipv6only=on;

root /usr/share/nginx/html;
index index.php index.html index.htm;

server_name _;

location / {
try_files $uri $uri/ /index.html;
}

location /doc/ {
alias /usr/share/doc/;
autoindex on;
allow 127.0.0.1;
allow ::1;
deny all;
}


error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}
}


помогите найти где ошибка может быть
Subject Author Posted

Cкачиваются php файлы

jm August 01, 2013 07:06AM

Re: Cкачиваются php файлы Attachments

Dmitriy Lyalyuev August 01, 2013 07:20AM

Re: Cкачиваются php файлы

jm August 01, 2013 07:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready