Skip to content
Snippets Groups Projects
Commit bb59a6c1 authored by Christopher Zentgraf's avatar Christopher Zentgraf
Browse files

Don't redirect static files requests such as error documents

parent fe1bb890
No related branches found
No related tags found
1 merge request!52Fix encoded characters in api requests, as well as missing error pages
Loading
Loading
@@ -33,7 +33,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
# needed for downloading attachments
Loading
Loading
Loading
Loading
@@ -34,7 +34,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
# needed for downloading attachments
Loading
Loading
Loading
Loading
@@ -34,7 +34,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
# needed for downloading attachments
Loading
Loading
Loading
Loading
@@ -35,7 +35,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward these requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
# needed for downloading attachments
Loading
Loading
Loading
Loading
@@ -60,7 +60,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
RequestHeader set X_FORWARDED_PROTO 'https'
Loading
Loading
Loading
Loading
@@ -61,7 +61,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
RequestHeader set X_FORWARDED_PROTO 'https'
Loading
Loading
Loading
Loading
@@ -59,7 +59,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
RequestHeader set X_FORWARDED_PROTO 'https'
Loading
Loading
Loading
Loading
@@ -60,7 +60,8 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
 
#Forward all requests to gitlab-workhorse
#Forward all requests to gitlab-workhorse except existing files like error documents
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
 
RequestHeader set X_FORWARDED_PROTO 'https'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment