|
@@ -1,7 +1,7 @@
|
|
|
server {
|
|
server {
|
|
|
listen %ip%:%web_ssl_port%;
|
|
listen %ip%:%web_ssl_port%;
|
|
|
server_name %domain_idn% %alias_idn%;
|
|
server_name %domain_idn% %alias_idn%;
|
|
|
- root %sdocroot%;
|
|
|
|
|
|
|
+ root %docroot%;
|
|
|
index index.php index.html index.htm;
|
|
index index.php index.html index.htm;
|
|
|
access_log /var/log/nginx/domains/%domain%.log combined;
|
|
access_log /var/log/nginx/domains/%domain%.log combined;
|
|
|
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
|
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
|
@@ -11,7 +11,24 @@ server {
|
|
|
ssl_certificate %ssl_pem%;
|
|
ssl_certificate %ssl_pem%;
|
|
|
ssl_certificate_key %ssl_key%;
|
|
ssl_certificate_key %ssl_key%;
|
|
|
|
|
|
|
|
|
|
+ location = /favicon.ico {
|
|
|
|
|
+ log_not_found off;
|
|
|
|
|
+ access_log off;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ location = /robots.txt {
|
|
|
|
|
+ allow all;
|
|
|
|
|
+ log_not_found off;
|
|
|
|
|
+ access_log off;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
location / {
|
|
location / {
|
|
|
|
|
+ try_files $uri $uri/ /index.php?$args;
|
|
|
|
|
+
|
|
|
|
|
+ if (!-e $request_filename)
|
|
|
|
|
+ {
|
|
|
|
|
+ rewrite ^(.+)$ /index.php?q=$1 last;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
|
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
|
|
expires max;
|
|
expires max;
|
|
@@ -44,12 +61,12 @@ server {
|
|
|
|
|
|
|
|
location /vstats/ {
|
|
location /vstats/ {
|
|
|
alias %home%/%user%/web/%domain%/stats/;
|
|
alias %home%/%user%/web/%domain%/stats/;
|
|
|
- include %home%/%user%/conf/web/%domain%.auth*;
|
|
|
|
|
|
|
+ include %home%/%user%/web/%domain%/stats/auth.conf*;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
|
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
|
|
include /etc/nginx/conf.d/phppgadmin.inc*;
|
|
include /etc/nginx/conf.d/phppgadmin.inc*;
|
|
|
include /etc/nginx/conf.d/webmail.inc*;
|
|
include /etc/nginx/conf.d/webmail.inc*;
|
|
|
|
|
|
|
|
- include %home%/%user%/conf/web/snginx.%domain%.conf*;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
|
|
|
|
|
+}
|