mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -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 {
|
||||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue