renamed nginx templates

This commit is contained in:
Serghey Rodin 2011-06-23 00:22:25 +03:00
commit 2cf57ee94f
3 changed files with 7 additions and 5 deletions

View file

@ -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.*
}

View file

@ -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"