mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
Update default.tpl
This commit is contained in:
parent
1e1abe72ad
commit
06298209c1
1 changed files with 14 additions and 17 deletions
|
@ -1,27 +1,24 @@
|
|||
server {
|
||||
listen %ip%:%proxy_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
index index.html index.htm;
|
||||
root %docroot%;
|
||||
ssl on;
|
||||
ssl_certificate %ssl_pem%;
|
||||
ssl_certificate_key %ssl_key%;
|
||||
error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
location ~* ^.+\.(%proxy_extentions%)$ {
|
||||
root %docroot%;
|
||||
location / {try_files $uri @backend;}
|
||||
location ~ .*\.(php|jsp|cgi|pl|py|php4|php5)?$ {
|
||||
access_log off;
|
||||
proxy_pass https://%ip%:%web_port%;
|
||||
}
|
||||
location ~* ^.+\.(%proxy_extentions%)$ {
|
||||
access_log /var/log/httpd/domains/%domain%.log combined;
|
||||
access_log /var/log/httpd/domains/%domain%.bytes bytes;
|
||||
expires max;
|
||||
try_files $uri @fallback;
|
||||
}
|
||||
try_files $uri @backend;
|
||||
}
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location @fallback {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
}
|
||||
|
||||
location @backend {proxy_pass https://%ip%:%web_ssl_port%;}
|
||||
location /error/ {alias %home%/%user%/web/%domain%/document_errors/;}
|
||||
location ~ .*\.(mp3|ftpquota|htaccess|svn|ht|git|hg|bzr)?\$ {deny all;}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue