File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
install/rhel/6/templates/web/nginx 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+ error_log /var/log/httpd/domains/% domain% .error.log error;
5+
6+ location / {
7+ proxy_pass http://% ip% :% web_port% ;
8+ location ~* ^.+\.(% proxy_extentions% )$ {
9+ root % docroot% ;
10+ access_log /var/log/httpd/domains/% domain% .log combined;
11+ access_log /var/log/httpd/domains/% domain% .bytes bytes;
12+ expires max;
13+ try_files $uri @fallback;
14+ }
15+ }
16+
17+ location /error/ {
18+ alias % home% /% user% /web/% domain% /document_errors/;
19+ }
20+
21+ location @fallback {
22+ proxy_pass http://% ip% :% web_port% ;
23+ }
24+
25+ location ~ /\.ht { return 404;}
26+ location ~ /\.svn/ { return 404;}
27+ location ~ /\.git/ { return 404;}
28+ location ~ /\.hg/ { return 404;}
29+ location ~ /\.bzr/ { return 404;}
30+
31+ include %home%/%user%/conf/web/nginx.%domain%.conf*;
32+ }
You can’t perform that action at this time.
0 commit comments