* Fixed log name in template vhost_ssl_header
* Better formatting for vhost_autogen.conf
This commit is contained in:
parent
0ea33de6ac
commit
413271f84d
4 changed files with 22 additions and 22 deletions
|
@ -1,14 +1,12 @@
|
|||
<% if @include_files %><% @include_files.each do |file| -%>
|
||||
include <%= file %>;
|
||||
<% end -%><% end -%>
|
||||
|
||||
<% if @vhost_cfg_append -%><% vhost_cfg_append.each do |key,value| -%>
|
||||
<%= key %> <%= value %>;
|
||||
<% end -%><% end -%>
|
||||
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
}
|
||||
|
||||
<% if rewrite_www_to_non_www %>
|
||||
<% if rewrite_www_to_non_www -%>
|
||||
server {
|
||||
listen <%= listen_ip %>;
|
||||
server_name www.<%= name.gsub(/^www\./, '') %>;
|
||||
|
|
|
@ -13,10 +13,11 @@ auth_basic "<%= auth_basic %>";
|
|||
auth_basic_user_file <%= auth_basic_user_file %>;
|
||||
<% end -%>
|
||||
|
||||
<% proxy_set_header.each do |header| %>
|
||||
proxy_set_header <%= header %>;<% end %>
|
||||
<% if @rewrite_to_https %>
|
||||
<% proxy_set_header.each do |header| -%>
|
||||
proxy_set_header <%= header %>;
|
||||
<% end -%>
|
||||
<% if @rewrite_to_https -%>
|
||||
if ($ssl_protocol = "") {
|
||||
return 301 https://$host$request_uri ;
|
||||
}
|
||||
<% end %>
|
||||
<% end -%>
|
||||
|
|
|
@ -19,3 +19,4 @@
|
|||
<%= key %> <%= value %>;
|
||||
<% end -%><% end -%>
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ server {
|
|||
ssl_protocols <%= ssl_protocols %>;
|
||||
ssl_ciphers <%= ssl_ciphers %>;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
<% if auth_basic != :undef -%>
|
||||
auth_basic "<%= auth_basic %>";
|
||||
<% end -%>
|
||||
|
@ -22,5 +21,6 @@ server {
|
|||
auth_basic_user_file <%= auth_basic_user_file %>;
|
||||
<% end -%>
|
||||
|
||||
access_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/ssl-<%= name %>.access.log;
|
||||
error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/ssl-<%= name %>.error.log;
|
||||
access_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/ssl-<%= name.gsub(' ', '_') %>.access.log;
|
||||
error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/ssl-<%= name.gsub(' ', '_') %>.error.log;
|
||||
|
||||
|
|
Loading…
Reference in a new issue