From 8de3ac5908f1597f6d11e02658182c2462832656 Mon Sep 17 00:00:00 2001 From: Igor V Belousov Date: Thu, 26 Jan 2017 06:49:27 +0300 Subject: [PATCH] final --- README.md | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index ac21fb4..4f5a70a 100644 --- a/README.md +++ b/README.md @@ -45,33 +45,33 @@ PTEST ``` server { - server_name ptest.i2g.ru; - root /mnt/160/sites/ptest.i2g/public; +server_name ptest.i2g.ru; +root /mnt/160/sites/ptest.i2g/public; + +location / { + try_files $uri /index.php?$query_string; +} +location ~ ^/index\.php(/|$) { + fastcgi_split_path_info ^(.+?\.php)(|/.*)$; + include fastcgi_params; + fastcgi_param HTTP_PROXY ""; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_intercept_errors on; + # PHP 5 socket location. + fastcgi_pass unix:/var/run/php5-fpm.sock; +} +location = /favicon.ico { + log_not_found off; + access_log off; +} - location / { - try_files $uri /index.php?$query_string; - } - location ~ ^/index\.php(/|$) { - fastcgi_split_path_info ^(.+?\.php)(|/.*)$; - include fastcgi_params; - fastcgi_param HTTP_PROXY ""; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_intercept_errors on; - # PHP 5 socket location. - fastcgi_pass unix:/var/run/php5-fpm.sock; - } +location = /robots.txt { + allow all; + log_not_found off; + access_log off; +} - location = /favicon.ico { - log_not_found off; - access_log off; - } - - location = /robots.txt { - allow all; - log_not_found off; - access_log off; - } } ```