This commit is contained in:
root 2023-01-27 18:00:42 +08:00
parent 091eb13595
commit 46b2d54e55
11 changed files with 398 additions and 14 deletions

View file

@ -3,20 +3,16 @@
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
#=======================================================================#
server {
listen %ip%:%proxy_port% ;
listen [::]:%proxy_port%;
listen %ip%:%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.forcessl.conf*;
location / {
proxy_pass http://127.0.0.1:8010;
location ~* ^.+\.(%proxy_extentions%)$ {
root %sdocroot%;
location ~* ^.+\.(%proxy_extensions%)$ {
root %docroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined;
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
expires max;
@ -29,7 +25,7 @@ server {
}
location @fallback {
proxy_pass http://127.0.0.1:8010;
proxy_pass http://%ip%:%web_port%;
}
location ~ /\.ht {return 404;}
@ -38,6 +34,6 @@ server {
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
include %home%/%user%/conf/web/%domain%/nginx.conf_*;
}