Skip to content

Correct Apache2.4 and PHP-FPM configuration (basic_auth not working) #4527

Closed
@thePanz

Description

@thePanz

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions