Quantcast
Channel: Nuudelisoppa
Viewing all articles
Browse latest Browse all 66

Apache 2.4: Require (allow) either (mod_auth_basic) valid-user or a specific query string

$
0
0
Prerequisities: Apache 2.4 you have set up your htpasswd file in /path/to/.htpasswd the alternative, secret query parameter for access is secret_access_parameter To make it work, add these lines to the appropriate section of your Apache vhost configuration: Require all denied <RequireAny> Require valid-user Require expr "%{QUERY_STRING} =~ /secret_access_parameter/" </RequireAny> AuthType Basic AuthName "Authorization required" AuthUserFile …

Viewing all articles
Browse latest Browse all 66

Trending Articles