File tree Expand file tree Collapse file tree 9 files changed +20
-17
lines changed
Expand file tree Collapse file tree 9 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 1010 SuexecUserGroup %user% %group%
1111 CustomLog /var/log/httpd/domains/%domain%.bytes bytes
1212 CustomLog /var/log/httpd/domains/%domain%.log combined
13- # ErrorLog /var/log/httpd/domains/%domain%.error.log
13+ %elog% ErrorLog /var/log/httpd/domains/%domain%.error.log
1414 <Directory %docroot%>
1515 AllowOverride AuthConfig FileInfo Indexes Limit
1616 SSLRequireSSL
Original file line number Diff line number Diff line change 1010 SuexecUserGroup %user% %group%
1111 CustomLog /var/log/httpd/domains/%domain%.bytes bytes
1212 CustomLog /var/log/httpd/domains/%domain%.log combined
13- # ErrorLog /var/log/httpd/domains/%domain%.error.log
13+ %elog% ErrorLog /var/log/httpd/domains/%domain%.error.log
1414 <Directory %docroot% >
1515 AllowOverride AuthConfig FileInfo Indexes Limit
1616 Options +Includes -Indexes +ExecCGI
Original file line number Diff line number Diff line change 1010 SuexecUserGroup %user% %group%
1111 CustomLog /var/log/httpd/domains/%domain%.bytes bytes
1212 CustomLog /var/log/httpd/domains/%domain%.log combined
13- # ErrorLog /var/log/httpd/domains/%domain%.error.log
13+ %elog% ErrorLog /var/log/httpd/domains/%domain%.error.log
1414 <Directory %docroot%>
1515 AllowOverride AuthConfig FileInfo Indexes Limit
1616 SSLRequireSSL
Original file line number Diff line number Diff line change 1010 SuexecUserGroup %user% %group%
1111 CustomLog /var/log/httpd/domains/%domain%.bytes bytes
1212 CustomLog /var/log/httpd/domains/%domain%.log combined
13- # ErrorLog /var/log/httpd/domains/%domain%.error.log
13+ %elog% ErrorLog /var/log/httpd/domains/%domain%.error.log
1414 <Directory %docroot% >
1515 AllowOverride AuthConfig FileInfo Indexes Limit
1616 Options +Includes -Indexes +ExecCGI
Original file line number Diff line number Diff line change 1010 SuexecUserGroup %user% %group%
1111 CustomLog /var/log/httpd/domains/%domain%.bytes bytes
1212 CustomLog /var/log/httpd/domains/%domain%.log combined
13- ErrorLog /var/log/httpd/domains/%domain%.error.log
13+ %elog% ErrorLog /var/log/httpd/domains/%domain%.error.log
1414 <Directory %docroot%>
1515 AllowOverride All
1616 SSLRequireSSL
Original file line number Diff line number Diff line change 1010 SuexecUserGroup %user% %group%
1111 CustomLog /var/log/httpd/domains/%domain%.bytes bytes
1212 CustomLog /var/log/httpd/domains/%domain%.log combined
13- ErrorLog /var/log/httpd/domains/%domain%.error.log
13+ %elog% ErrorLog /var/log/httpd/domains/%domain%.error.log
1414 <Directory %docroot% >
1515 AllowOverride All
1616 Options +Includes -Indexes +ExecCGI
Original file line number Diff line number Diff line change 11server {
2- listen %ip%:%proxy_port %;
2+ listen %ip%:%proxy_ssl_port %;
33 server_name %domain_idn% %alias_idn%;
44 server_name_in_redirect off;
5- # error_log /var/log/httpd/domains/%domain%.error.log error;
5+ %elog% error_log /var/log/httpd/domains/%domain%.error.log error;
66
77 location / {
8- proxy_pass http://%ip%:%web_port %;
8+ proxy_pass http://%ip%:%web_ssl_port %;
99
1010 location ~* ^.+\.(%extentions%)$ {
1111 root %docroot%;
@@ -22,11 +22,12 @@ server {
2222 }
2323
2424 location @fallback {
25- proxy_pass http://%ip%:%web_port %;
25+ proxy_pass http://%ip%:%web_ssl_port %;
2626 }
2727
2828 location ~ /\.ht {deny all;}
2929 location ~ /.svn/ {deny all;}
3030
31- Include %home%/%user%/conf/%domain%.nginx.*
31+ include %home%/%user%/conf/%domain%.nginx.*;
3232}
33+
Original file line number Diff line number Diff line change 11server {
2- listen % ip% :% proxy_ssl_port % ;
2+ listen % ip% :% proxy_port % ;
33 server_name % domain_idn% % alias_idn% ;
44 server_name_in_redirect off;
5- # error_log /var/log/httpd/domains/% domain% .error.log error;
5+ % elog % error_log /var/log/httpd/domains/% domain% .error.log error;
66
77 location / {
8- proxy_pass http://% ip% :% web_ssl_port % ;
8+ proxy_pass http://% ip% :% web_port % ;
99
1010 location ~* ^.+\.(% extentions% )$ {
1111 root % docroot% ;
@@ -22,11 +22,12 @@ server {
2222 }
2323
2424 location @fallback {
25- proxy_pass http://% ip% :% web_ssl_port % ;
25+ proxy_pass http://% ip% :% web_port % ;
2626 }
2727
2828 location ~ /\.ht { deny all;}
2929 location ~ /.svn/ { deny all;}
3030
31- Include %home%/%user%/conf/%domain%.nginx.*
31+ include %home%/%user%/conf/%domain%.nginx.*;
3232}
33+
Original file line number Diff line number Diff line change @@ -238,7 +238,8 @@ httpd_add_config() {
238238 -e " s/%alias%/${aliases// ,/ } /g" \
239239 -e " s/%ssl_cert%/${ssl_cert//// \/ } /g" \
240240 -e " s/%ssl_key%/${ssl_key//// \/ } /g" \
241- -e " s/%extentions%/$extentions /g" \
241+ -e " s/%extentions%/${extentions// ,/ |} /g" \
242+ -e " s/%elog%/$elog /g" \
242243 >> $conf
243244}
244245
You can’t perform that action at this time.
0 commit comments