File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
install/rhel/6/templates/web/nginx Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ server {
2+ listen %ip%:%proxy_ssl_port% http2;
3+ server_name %domain_idn% %alias_idn%;
4+ ssl on;
5+ ssl_certificate %ssl_pem%;
6+ ssl_certificate_key %ssl_key%;
7+ error_log /var/log/httpd/domains/%domain%.error.log error;
8+
9+ location / {
10+ proxy_pass https://%ip%:%web_ssl_port%;
11+ location ~* ^.+\.(%proxy_extentions%)$ {
12+ root %sdocroot%;
13+ access_log /var/log/httpd/domains/%domain%.log combined;
14+ access_log /var/log/httpd/domains/%domain%.bytes bytes;
15+ expires max;
16+ try_files $uri @fallback;
17+ }
18+ }
19+
20+ location /error/ {
21+ alias %home%/%user%/web/%domain%/document_errors/;
22+ }
23+
24+ location @fallback {
25+ proxy_pass https://%ip%:%web_ssl_port%;
26+ }
27+
28+ location ~ /\.ht {return 404;}
29+ location ~ /\.svn/ {return 404;}
30+ location ~ /\.git/ {return 404;}
31+ location ~ /\.hg/ {return 404;}
32+ location ~ /\.bzr/ {return 404;}
33+
34+ include %home%/%user%/conf/web/snginx.%domain%.conf*;
35+ }
You can’t perform that action at this time.
0 commit comments