Skip to content

Commit 718dfc2

Browse files
committed
added ningx ssl template
1 parent 3bbce4c commit 718dfc2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

0 commit comments

Comments
 (0)