43 lines
1.4 KiB
Smarty
43 lines
1.4 KiB
Smarty
#=======================================================================#
|
|
# Default Web Domain Template #
|
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
|
#=======================================================================#
|
|
|
|
|
|
server {
|
|
listen %ip%:%proxy_port% ;
|
|
listen [::]:%proxy_port%;
|
|
server_name %domain_idn% %alias_idn%;
|
|
|
|
error_log /var/log/%web_system%/domains/%domain%.error.log error;
|
|
|
|
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8010;
|
|
location ~* ^.+\.(%proxy_extentions%)$ {
|
|
root %sdocroot%;
|
|
access_log /var/log/%web_system%/domains/%domain%.log combined;
|
|
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
|
|
expires max;
|
|
try_files $uri @fallback;
|
|
}
|
|
}
|
|
|
|
location /error/ {
|
|
alias %home%/%user%/web/%domain%/document_errors/;
|
|
}
|
|
|
|
location @fallback {
|
|
proxy_pass http://127.0.0.1:8010;
|
|
}
|
|
|
|
location ~ /\.ht {return 404;}
|
|
location ~ /\.svn/ {return 404;}
|
|
location ~ /\.git/ {return 404;}
|
|
location ~ /\.hg/ {return 404;}
|
|
location ~ /\.bzr/ {return 404;}
|
|
|
|
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
|
|
}
|
|
|