Skip to content

Commit

Permalink
Also add aliases to http vhost when vhosts are sslonly
Browse files Browse the repository at this point in the history
  • Loading branch information
fdammeke committed Nov 16, 2015
1 parent aeb2bbd commit 705cdf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/vhost-redirect-http-https.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# file managed by puppet
<VirtualHost<% @ports.each do |port| -%> <%= port %><% end -%>>
ServerName <%= @name %>
<% if @aliases -%>
<% @aliases.each do |serveralias| -%>
ServerAlias <%= serveralias %>
<% end -%>
<% end -%>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Expand Down

0 comments on commit 705cdf6

Please sign in to comment.