do proxypass for pages
authorPeter Palfrader <peter@palfrader.org>
Thu, 25 Jan 2018 21:40:42 +0000 (22:40 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 25 Jan 2018 21:40:42 +0000 (22:40 +0100)
modules/salsa/templates/apache-pages.debian.net.conf.erb

index aab039f..09a5593 100644 (file)
@@ -20,19 +20,19 @@ Use common-debian-service-https-redirect * pages.debian.net
        ProxyPreserveHost On
        AllowEncodedSlashes NoDecode
 
+       ProxyPass / http://127.0.0.1:8080/ retry=10 nocanon
        ProxyPassReverse / http://127.0.0.1:8090/
-       #ProxyPassReverse / http://salsa.debian.org/
 
-       RewriteEngine on
+       #RewriteEngine on
        #RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR]
        #RewriteCond %{REQUEST_URI} ^/uploads/.*
-       RewriteRule .* http://127.0.0.1:8090%{REQUEST_URI} [P,QSA,NE]
+       #RewriteRule .* http://127.0.0.1:8090%{REQUEST_URI} [P,QSA,NE]
 
        #RequestHeader set X_FORWARDED_PROTO 'https'
        #RequestHeader set X-Forwarded-Ssl on
 
-       ErrorDocument 403 /403.html
-       ErrorDocument 404 /404.html
+       #ErrorDocument 403 /403.html
+       #ErrorDocument 404 /404.html
        #ErrorDocument 422 /422.html
        #ErrorDocument 500 /500.html
        #ErrorDocument 502 /502.html