====== Apache HTTP Auth ====== ===== 2.2 ===== AuthType Basic AuthName "Acesso ao Meu Site" AuthUserFile /etc/httpd/auth/users Require valid-user #Require user "userFulano" ===== 2.4 ===== AuthType Basic AuthName "Acesso ao Meu Site" AuthBasicProvider file AuthUserFile /etc/httpd/auth/users Require valid-user #Require user "userFulano" ==== PHP-FPM ==== ServerName auth.dev DocumentRoot "/var/www/auth" ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:3101/var/www/html/app/public/$1 SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1