[#463] Pass through Basic Auth in an FCGI setup
This commit is contained in:
parent
0d69fa6bb1
commit
6c690814c9
|
@ -37,13 +37,13 @@ RewriteRule ^$ index.html [QSA]
|
||||||
RewriteRule ^([^.]+)$ $1.html [QSA]
|
RewriteRule ^([^.]+)$ $1.html [QSA]
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
<IfModule mod_fastcgi.c>
|
<IfModule mod_fastcgi.c>
|
||||||
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
|
RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:{HTTP:Authorization},QSA,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
<IfModule mod_fcgid.c>
|
<IfModule mod_fcgid.c>
|
||||||
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
|
RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:{HTTP:Authorization},QSA,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
<IfModule mod_cgi.c>
|
<IfModule mod_cgi.c>
|
||||||
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
|
RewriteRule ^(.*)$ dispatch.cgi [E=X-HTTP_AUTHORIZATION:{HTTP:Authorization},QSA,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# In case Rails experiences terminal errors
|
# In case Rails experiences terminal errors
|
||||||
|
|
Loading…
Reference in New Issue