Page 1 of 1

RequireAll not working

PostPosted: 04. March 2023 14:53
by Ray0086
Code: Select all
Listen 80
Listen 443

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule ssl_module modules/mod_ssl.so

DocumentRoot c:/xampp/htdocs

<VirtualHost _default_:443>
    DocumentRoot C:\pagina
    SSLEngine On
    SSLCACertificateFile C:\pagina\certs\CA.crt
    SSLCertificateFile C:\pagina\certs\192.168.56.10.crt
    SSLCertificateKeyFile C:\pagina\certs\PrivadaServidor
    SSLVerifyClient require
</VirtualHost>
<Directory C:\pagina>
    AuthName "TOP SECRET"
    AuthType Basic
    AuthBasicProvider file
    AuthUserFile C:\pagina\usuarios
    <RequireAll>
            Require user xxxxx
            Require ip xxx.xxx.xx.xx
    </RequireAll>
</Directory>

I think is a problem about the RequireAll because I erase that part and it woks correctly (But i can't erase it because i need to permit the access from a user from a certain ip adress). Do you have some advice?

Thankyou

Re: RequireAll not working

PostPosted: 04. March 2023 21:48
by Altrea
Hi

Describe much more what you expect to get happen and what happens instead.