File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ server {
2+ listen %ip%:%proxy_port%;
3+ server_name %domain_idn% %alias_idn%;
4+ server_name_in_redirect off;
5+ #error_log /var/log/httpd/domains/%domain%.error.log error;
6+
7+ location / {
8+ proxy_pass http://%ip%:%web_port%;
9+
10+ location ~* ^.+\.(%extentions%)$ {
11+ root %docroot%;
12+ access_log /var/log/httpd/domains/%domain%.log combined;
13+ access_log /var/log/httpd/domains/%domain%.bytes bytes;
14+ expires max;
15+ try_files $uri @fallback;
16+ }
17+ }
18+
19+ location = /error/ {
20+ root %home%/%user%/domains/%domain%/document_errors/;
21+ try_files $uri @fallback;
22+ }
23+
24+ location @fallback {
25+ proxy_pass http://%ip%:%web_port%;
26+ }
27+
28+ location ~ /\.ht {deny all;}
29+ location ~ /.svn/ {deny all;}
30+
31+ Include %home%/%user%/conf/%domain%.nginx.*
32+ }
You can’t perform that action at this time.
0 commit comments