32 lines
927 B
Plaintext
32 lines
927 B
Plaintext
#beginConf
|
|
|
|
#access_log /var/log/nginx/SITEname-access.log;
|
|
error_log /var/log/nginx/SITEname-error.log;
|
|
|
|
index index.php index.html index.htm index.nginx-debian.html;
|
|
root /var/www/DOMAINname/html;
|
|
gzip on;
|
|
gzip_proxied any;
|
|
gzip_types text/plain text/css text/xml text/javascript application/javascript application/x-javascript image/svg image/svg+xml application/xml image/x-icon;
|
|
gzip_comp_level 2;
|
|
gzip_disable "msie6";
|
|
gzip_buffers 16 8k;
|
|
|
|
#include snippets/ngx-backendredir.conf;
|
|
|
|
location / {
|
|
#try_files $uri $uri/ =404;
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
#try_files $uri $uri/ $uri.html $uri.php$is_args$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass unix:/var/run/php/phpPHPver-fpm-SITEname.sock;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|
|
#endConf |