Этот коммит содержится в:
Igor V Belousov 2017-01-26 06:49:27 +03:00
родитель a362c6c1e9
Коммит 8de3ac5908

Просмотреть файл

@ -45,13 +45,13 @@ PTEST
``` ```
server { server {
server_name ptest.i2g.ru; server_name ptest.i2g.ru;
root /mnt/160/sites/ptest.i2g/public; root /mnt/160/sites/ptest.i2g/public;
location / { location / {
try_files $uri /index.php?$query_string; try_files $uri /index.php?$query_string;
} }
location ~ ^/index\.php(/|$) { location ~ ^/index\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
include fastcgi_params; include fastcgi_params;
fastcgi_param HTTP_PROXY ""; fastcgi_param HTTP_PROXY "";
@ -60,18 +60,18 @@ server {
fastcgi_intercept_errors on; fastcgi_intercept_errors on;
# PHP 5 socket location. # PHP 5 socket location.
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php5-fpm.sock;
} }
location = /favicon.ico {
location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
} }
location = /robots.txt { location = /robots.txt {
allow all; allow all;
log_not_found off; log_not_found off;
access_log off; access_log off;
} }
} }
``` ```