ErrorLog /var/log/apache2/salsa.debian.org-error.log
CustomLog /var/log/apache2/salsa.debian.org-access.log privacy
- ProxyPass / http://127.0.0.1:8080/ retry=15
- ProxyPassReverse / http://127.0.0.1:8080/
+ DocumentRoot /srv/salsa.debian.org/gitlab/public
+
+ ProxyPreserveHost On
+ AllowEncodedSlashes NoDecode
+
+ ProxyPassReverse http://127.0.0.1:8080/
+ ProxyPassReverse http://salsa.debian.org/
+
+ RewriteEngine on
+ RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR]
+ RewriteCond %{REQUEST_URI} ^/uploads/.*
+ RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA,NE]
+
+ RequestHeader set X_FORWARDED_PROTO 'https'
+ RequestHeader set X-Forwarded-Ssl on
+
+ ErrorDocument 404 /404.html
+ ErrorDocument 422 /422.html
+ ErrorDocument 500 /500.html
+ ErrorDocument 502 /502.html
+ ErrorDocument 503 /503.html
</VirtualHost>
# vim:set syn=apache: