apache: Add support for port based SSL virtual hosts

This commit is contained in:
Ossi Salmi 2013-09-24 15:11:12 +03:00
parent 379ca62a5f
commit 53a0422843
4 changed files with 22 additions and 8 deletions

View file

@ -1,7 +1,7 @@
<VirtualHost <%= @ipaddr %>:443>
<VirtualHost <%= @ipaddr %>:<%= @port %>>
# General setup for the virtual host, inherited from global configuration
ServerName <%= @site_fqdn %>:443
ServerName <%= @site_fqdn %>
# Use separate log files for the SSL virtual host; note that LogLevel
# is not inherited from httpd.conf.
@ -156,11 +156,11 @@ BrowserMatch "MSIE [2-5]" \
<% end -%>
<% if @proxy != "" -%>
ProxyPass / <%= @proxy %>/
ProxyPassReverse / <%= @proxy %>/
ProxyPass / <%= @proxy %>/
ProxyPassReverse / <%= @proxy %>/
<% else -%>
DocumentRoot /srv/www/https/<%= @site_fqdn %>
Include <%= @site_confdir %>/*.conf
DocumentRoot /srv/www/https/<%= @site_fqdn %>
Include <%= @site_confdir %>/*.conf
<% end -%>
</VirtualHost>