Commit 8e2b361b authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Added servername/serveralias directives to apache templates (oops).

parent fa3b0bc1
......@@ -16,6 +16,16 @@ NameVirtualHost <%= ip %>:80
<VirtualHost <%= ips.collect{|ip| ip+":80"}.join(" ") %>>
#
# Put our server name
#
ServerName <%= domain %>
#
# And server alias in place
#
ServerAlias www.<%= domain %>
#
# This is the directory people are redirected to
# if their site is empty.
......
......@@ -21,9 +21,17 @@ NameVirtualHost <%= ip %>:80
<VirtualHost <%= ips.collect{|ip| ip+":443"}.join(" ") %>>
#
# Put our server name
#
ServerName <%= domain %>
#
# And server alias in place
#
ServerAlias www.<%= domain %>
SSLEngine On
#
......@@ -92,6 +100,16 @@ NameVirtualHost <%= ip %>:80
<VirtualHost <%= ips.collect{|ip| ip+":80"}.join(" ") %>>
#
# Put our server name
#
ServerName <%= domain %>
#
# And server alias in place
#
ServerAlias www.<%= domain %>
% if mandatory_ssl?
#
# All accesses redirect to the HTTPS version of
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment