Mercurial > repos > other > Puppet
changeset 472:73e28468a543
Fix HTTP on IPv6
We don't need the remote IP instruction on both redirects,
just on the IPv4-to-6 proxy redirect
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 21 May 2024 20:15:05 +0100 |
parents | 65290cb0cec2 |
children | 9437c6ffa07c |
files | modules/website/manifests/https.pp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/website/manifests/https.pp Sun May 12 19:51:53 2024 +0100 +++ b/modules/website/manifests/https.pp Tue May 21 20:15:05 2024 +0100 @@ -140,10 +140,10 @@ $group = $docroot_group } - $redir_fragment = "RemoteIPProxyProtocol On -# Filter before we redirect to HTTPS -Include conf.custom/filter-core.conf -Redirect permanent / https://$name/" + $redir_fragment = " + # Filter before we redirect to HTTPS + Include conf.custom/filter-core.conf + Redirect permanent / https://$name/" apache::vhost { $name: @@ -209,7 +209,7 @@ port => 80, docroot => $siteroot, serveraliases => $serveraliases, - custom_fragment => $redir_fragment, + custom_fragment => "RemoteIPProxyProtocol On\n$redir_fragment", logroot => '/var/log/apache/', access_log_file => "access_${logpart}_80.log", access_log_format => "%a %l %u %t \\\"%r\\\" %>s %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\" %{Host}i",