Fixing rewriterule

The (.*) regex didn't work with gitlab 6.1 so I switched back to using REQUEST_URI.
This commit is contained in:
semiosis
2013-10-03 22:29:52 -04:00
parent 29410935c8
commit 98153fb3cc

View File

@@ -44,7 +44,7 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule (.*) http://127.0.0.1:8080%1 [P,QSA]
RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
# needed for downloading attachments
DocumentRoot /home/git/gitlab/public