mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
added ningx ssl template
This commit is contained in:
parent
3bbce4c28a
commit
718dfc25f2
1 changed files with 32 additions and 0 deletions
32
data/templates/ngingx_vhost_default.stpl
Normal file
32
data/templates/ngingx_vhost_default.stpl
Normal file
|
@ -0,0 +1,32 @@
|
|||
server {
|
||||
listen %ip%:%proxy_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
server_name_in_redirect off;
|
||||
#error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
|
||||
location ~* ^.+\.(%extentions%)$ {
|
||||
root %docroot%;
|
||||
access_log /var/log/httpd/domains/%domain%.log combined;
|
||||
access_log /var/log/httpd/domains/%domain%.bytes bytes;
|
||||
expires max;
|
||||
try_files $uri @fallback;
|
||||
}
|
||||
}
|
||||
|
||||
location = /error/ {
|
||||
root %home%/%user%/domains/%domain%/document_errors/;
|
||||
try_files $uri @fallback;
|
||||
}
|
||||
|
||||
location @fallback {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
}
|
||||
|
||||
location ~ /\.ht {deny all;}
|
||||
location ~ /.svn/ {deny all;}
|
||||
|
||||
Include %home%/%user%/conf/%domain%.nginx.*
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue