mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-20 02:41:59 +01:00
renamed nginx templates
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen %ip%:80;
|
||||
listen %ip%:%proxy_port%;
|
||||
server_name %domain_idn% %alias%;
|
||||
server_name_in_redirect off;
|
||||
#error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
@@ -17,7 +17,7 @@ server {
|
||||
}
|
||||
|
||||
location = /error/ {
|
||||
root %error_docroot%;
|
||||
root %home%/%user%/domains/%domain%/document_errors/;
|
||||
try_files $uri @fallback;
|
||||
}
|
||||
|
||||
@@ -27,4 +27,6 @@ server {
|
||||
|
||||
location ~ /\.ht {deny all;}
|
||||
location ~ /.svn/ {deny all;}
|
||||
|
||||
Include %home%/%user%/conf/%domain%.nginx.*
|
||||
}
|
||||
@@ -590,9 +590,9 @@ is_template_valid() {
|
||||
}
|
||||
|
||||
proxy_template() {
|
||||
tpl="$V_WEBTPL/ngingx_vhost-$template.tpl"
|
||||
descr="$V_WEBTPL/ngingx_vhost-$template.descr"
|
||||
ssl="$V_WEBTPL/ngingx_vhost-$template.ssl.tpl"
|
||||
tpl="$V_WEBTPL/ngingx_vhost_$template.tpl"
|
||||
descr="$V_WEBTPL/ngingx_vhost_$template.descr"
|
||||
ssl="$V_WEBTPL/ngingx_vhost_$template.ssl.tpl"
|
||||
|
||||
if [ ! -e $tpl ] || [ ! -e $descr ] || [ ! -e $ssl ]; then
|
||||
echo "Error: template not found"
|
||||
|
||||
Reference in New Issue
Block a user