: Http-basic auth, else placeholder-page Is it possible to show a http-basic-auth, and when someone fails that test, show a certain HTML-placeholder-page? If so, how can I achieve that?
Is it possible to show a http-basic-auth, and when someone fails that test, show a certain HTML-placeholder-page?
If so, how can I achieve that?
More posts by @Kristi941
1 Comments
Sorted by latest first Latest Oldest Best
There is an answer on stackoverflow.com/questions/1726860/apache-authentication-redirect-on-failure-reliably
Basically you send a html file as error document that does a redirect to your placeholder page:
<Location "/protected">
AuthUserFile /path/to/users
AuthName "This is protected area"
AuthGroupFile /dev/null
AuthType Basic
Require valid-user
#ErrorDocument 401 /register.html
ErrorDocument 401 "<html><meta http-equiv="refresh" content="0;url=/register.html"></html>"
</Location>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.