You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution is to correctly configure the Apache VirtualHost by adding:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
as mentioned on StackOverflow (http://stackoverflow.com/a/17490827/435956).
Actually, I am not sure if we should add these lines. If we do so, we should add them as comments explaining that you would have to remove the comment characters to use it.
But, isn't this necessary code that belongs to the .htaccess file of the standard edition? If it is a specific configuration needed with PHP FPM and mod_proxy, using <IfModule> could be used to choose the proper context (the lines mentioned by @thePanz seem to do the same if used with mod_php, don't they?).
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#4528).
Discussion
----------
Update web_server_configuration.rst
Fixes for issue #4527
Commits
-------
f70dbf1 Update web_server_configuration.rst
0065791 Update web_server_configuration.rst
I am using Symfony 2.5.7 under PHP-PFM + Apache 2.4 under Ubuntu 14.04 (a simple Vagrant machine created with Puphpet.com).
The "basic_auth" is not working under this environment, even if using latest .htaccess file from master branch (in particular adding the lines: https://github.com/symfony/symfony-standard/blob/master/web/.htaccess#L21-23).
The solution is to correctly configure the Apache VirtualHost by adding:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
as mentioned on StackOverflow (http://stackoverflow.com/a/17490827/435956).
Please update the documentation and the example provided online (http://symfony.com/doc/master/cookbook/configuration/web_server_configuration.html#using-mod-proxy-fcgi-with-apache-2-4)
The text was updated successfully, but these errors were encountered: