Skip to content

Commit 2cf57ee

Browse files
committed
renamed nginx templates
1 parent 9b5caa1 commit 2cf57ee

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen %ip%:80;
2+
listen %ip%:%proxy_port%;
33
server_name %domain_idn% %alias%;
44
server_name_in_redirect off;
55
#error_log /var/log/httpd/domains/%domain%.error.log error;
@@ -17,7 +17,7 @@ server {
1717
}
1818

1919
location = /error/ {
20-
root %error_docroot%;
20+
root %home%/%user%/domains/%domain%/document_errors/;
2121
try_files $uri @fallback;
2222
}
2323

@@ -27,4 +27,6 @@ server {
2727

2828
location ~ /\.ht {deny all;}
2929
location ~ /.svn/ {deny all;}
30+
31+
Include %home%/%user%/conf/%domain%.nginx.*
3032
}

func/shared_func.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,9 @@ is_template_valid() {
590590
}
591591

592592
proxy_template() {
593-
tpl="$V_WEBTPL/ngingx_vhost-$template.tpl"
594-
descr="$V_WEBTPL/ngingx_vhost-$template.descr"
595-
ssl="$V_WEBTPL/ngingx_vhost-$template.ssl.tpl"
593+
tpl="$V_WEBTPL/ngingx_vhost_$template.tpl"
594+
descr="$V_WEBTPL/ngingx_vhost_$template.descr"
595+
ssl="$V_WEBTPL/ngingx_vhost_$template.ssl.tpl"
596596

597597
if [ ! -e $tpl ] || [ ! -e $descr ] || [ ! -e $ssl ]; then
598598
echo "Error: template not found"

0 commit comments

Comments
 (0)