mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
renamed nginx templates
This commit is contained in:
parent
9b5caa198c
commit
2cf57ee94f
3 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
server {
|
server {
|
||||||
listen %ip%:80;
|
listen %ip%:%proxy_port%;
|
||||||
server_name %domain_idn% %alias%;
|
server_name %domain_idn% %alias%;
|
||||||
server_name_in_redirect off;
|
server_name_in_redirect off;
|
||||||
#error_log /var/log/httpd/domains/%domain%.error.log error;
|
#error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||||
|
@ -17,7 +17,7 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /error/ {
|
location = /error/ {
|
||||||
root %error_docroot%;
|
root %home%/%user%/domains/%domain%/document_errors/;
|
||||||
try_files $uri @fallback;
|
try_files $uri @fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,4 +27,6 @@ server {
|
||||||
|
|
||||||
location ~ /\.ht {deny all;}
|
location ~ /\.ht {deny all;}
|
||||||
location ~ /.svn/ {deny all;}
|
location ~ /.svn/ {deny all;}
|
||||||
|
|
||||||
|
Include %home%/%user%/conf/%domain%.nginx.*
|
||||||
}
|
}
|
|
@ -590,9 +590,9 @@ is_template_valid() {
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy_template() {
|
proxy_template() {
|
||||||
tpl="$V_WEBTPL/ngingx_vhost-$template.tpl"
|
tpl="$V_WEBTPL/ngingx_vhost_$template.tpl"
|
||||||
descr="$V_WEBTPL/ngingx_vhost-$template.descr"
|
descr="$V_WEBTPL/ngingx_vhost_$template.descr"
|
||||||
ssl="$V_WEBTPL/ngingx_vhost-$template.ssl.tpl"
|
ssl="$V_WEBTPL/ngingx_vhost_$template.ssl.tpl"
|
||||||
|
|
||||||
if [ ! -e $tpl ] || [ ! -e $descr ] || [ ! -e $ssl ]; then
|
if [ ! -e $tpl ] || [ ! -e $descr ] || [ ! -e $ssl ]; then
|
||||||
echo "Error: template not found"
|
echo "Error: template not found"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue