apache: Fix file names with port based SSL virtual hosts

Ubuntu 10.04's apache ignores config files with colons in the name.
This commit is contained in:
Ossi Salmi 2013-11-05 10:16:19 +02:00
parent 7ca414fc9f
commit 1b87c7bd04
2 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<VirtualHost <%= @ipaddr %>:<%= @port %>>
# General setup for the virtual host, inherited from global configuration
ServerName <%= @site_fqdn %>
ServerName <%= @site_fqdn.sub(/\.([0-9]+)$/, ':\1') %>
# Use separate log files for the SSL virtual host; note that LogLevel
# is not inherited from httpd.conf.