From 0577159b575a9f241d5a9be268285008e9366bf7 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 25 Jan 2018 21:49:40 +0100 Subject: [PATCH 1/1] ProxyPass everything so we can set nocanon (re: RT#7057) --- modules/salsa/templates/apache-salsa.debian.org.conf.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/salsa/templates/apache-salsa.debian.org.conf.erb b/modules/salsa/templates/apache-salsa.debian.org.conf.erb index 176db7e42..2b2ab6cdc 100644 --- a/modules/salsa/templates/apache-salsa.debian.org.conf.erb +++ b/modules/salsa/templates/apache-salsa.debian.org.conf.erb @@ -19,13 +19,14 @@ Use common-debian-service-https-redirect * salsa.debian.org ProxyPreserveHost On AllowEncodedSlashes NoDecode + ProxyPass / http://127.0.0.1:8181/ retry=10 nocanon ProxyPassReverse / http://127.0.0.1:8181/ ProxyPassReverse / http://salsa.debian.org/ - RewriteEngine on - RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR] - RewriteCond %{REQUEST_URI} ^/uploads/.* - RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA,NE] + #RewriteEngine on + #RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR] + #RewriteCond %{REQUEST_URI} ^/uploads/.* + #RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA,NE] RequestHeader set X_FORWARDED_PROTO 'https' RequestHeader set X-Forwarded-Ssl on -- 2.20.1