root zhumarin home azq2 cat etc nginx php_fast_cgi conf index index ph

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
root@zhumarin /home/azq2 # cat /etc/nginx/php_fast_cgi.conf
index index.php index.html;
location /favicon.ico {
log_not_found off;
access_log off;
}
location /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \.php$ {
if (!-f "$document_root$fastcgi_script_name") {
return 404;
}
fastcgi_pass $fast_cgi_pool;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_ignore_client_abort off;
}
location / {
access_log off;
expires 365d;
}