Ferramentas do usuário

Ferramentas do site


apache:auth

Tabela de conteúdos

Apache HTTP Auth

2.2

<Directory "/var/www/site1/">
    AuthType Basic
    AuthName "Acesso ao Meu Site"
    AuthUserFile /etc/httpd/auth/users
    Require valid-user
    #Require user "userFulano"
</Directory>

2.4

<Directory "/var/www/site1/">
    AuthType Basic
    AuthName "Acesso ao Meu Site"
    AuthBasicProvider file
    AuthUserFile /etc/httpd/auth/users
    Require valid-user
    #Require user "userFulano"
</Directory>

PHP-FPM

<VirtualHost *>
   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
</VirtualHost> 
apache/auth.txt · Última modificação: 27/04/2021 12:05 por 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki