mirror of
https://github.com/myvesta/vesta.git
synced 2025-03-12 04:35:23 -07:00
added %elog% variable
This commit is contained in:
parent
718dfc25f2
commit
380f389d13
@ -10,7 +10,7 @@
|
||||
SuexecUserGroup %user% %group%
|
||||
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/httpd/domains/%domain%.log combined
|
||||
#ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
<Directory %docroot%>
|
||||
AllowOverride AuthConfig FileInfo Indexes Limit
|
||||
SSLRequireSSL
|
||||
|
@ -10,7 +10,7 @@
|
||||
SuexecUserGroup %user% %group%
|
||||
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/httpd/domains/%domain%.log combined
|
||||
#ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
<Directory %docroot%>
|
||||
AllowOverride AuthConfig FileInfo Indexes Limit
|
||||
Options +Includes -Indexes +ExecCGI
|
||||
|
@ -10,7 +10,7 @@
|
||||
SuexecUserGroup %user% %group%
|
||||
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/httpd/domains/%domain%.log combined
|
||||
#ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
<Directory %docroot%>
|
||||
AllowOverride AuthConfig FileInfo Indexes Limit
|
||||
SSLRequireSSL
|
||||
|
@ -10,7 +10,7 @@
|
||||
SuexecUserGroup %user% %group%
|
||||
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/httpd/domains/%domain%.log combined
|
||||
#ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
<Directory %docroot%>
|
||||
AllowOverride AuthConfig FileInfo Indexes Limit
|
||||
Options +Includes -Indexes +ExecCGI
|
||||
|
@ -10,7 +10,7 @@
|
||||
SuexecUserGroup %user% %group%
|
||||
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/httpd/domains/%domain%.log combined
|
||||
ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
<Directory %docroot%>
|
||||
AllowOverride All
|
||||
SSLRequireSSL
|
||||
|
@ -10,7 +10,7 @@
|
||||
SuexecUserGroup %user% %group%
|
||||
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/httpd/domains/%domain%.log combined
|
||||
ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
||||
<Directory %docroot%>
|
||||
AllowOverride All
|
||||
Options +Includes -Indexes +ExecCGI
|
||||
|
@ -1,11 +1,11 @@
|
||||
server {
|
||||
listen %ip%:%proxy_port%;
|
||||
listen %ip%:%proxy_ssl_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
server_name_in_redirect off;
|
||||
#error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
%elog%error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
proxy_pass http://%ip%:%web_ssl_port%;
|
||||
|
||||
location ~* ^.+\.(%extentions%)$ {
|
||||
root %docroot%;
|
||||
@ -22,11 +22,12 @@ server {
|
||||
}
|
||||
|
||||
location @fallback {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
proxy_pass http://%ip%:%web_ssl_port%;
|
||||
}
|
||||
|
||||
location ~ /\.ht {deny all;}
|
||||
location ~ /.svn/ {deny all;}
|
||||
|
||||
Include %home%/%user%/conf/%domain%.nginx.*
|
||||
include %home%/%user%/conf/%domain%.nginx.*;
|
||||
}
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
server {
|
||||
listen %ip%:%proxy_ssl_port%;
|
||||
listen %ip%:%proxy_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
server_name_in_redirect off;
|
||||
#error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
%elog%error_log /var/log/httpd/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
proxy_pass http://%ip%:%web_ssl_port%;
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
|
||||
location ~* ^.+\.(%extentions%)$ {
|
||||
root %docroot%;
|
||||
@ -22,11 +22,12 @@ server {
|
||||
}
|
||||
|
||||
location @fallback {
|
||||
proxy_pass http://%ip%:%web_ssl_port%;
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
}
|
||||
|
||||
location ~ /\.ht {deny all;}
|
||||
location ~ /.svn/ {deny all;}
|
||||
|
||||
Include %home%/%user%/conf/%domain%.nginx.*
|
||||
include %home%/%user%/conf/%domain%.nginx.*;
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,8 @@ httpd_add_config() {
|
||||
-e "s/%alias%/${aliases//,/ }/g" \
|
||||
-e "s/%ssl_cert%/${ssl_cert////\/}/g" \
|
||||
-e "s/%ssl_key%/${ssl_key////\/}/g" \
|
||||
-e "s/%extentions%/$extentions/g" \
|
||||
-e "s/%extentions%/${extentions//,/|}/g" \
|
||||
-e "s/%elog%/$elog/g" \
|
||||
>> $conf
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user