Answer the question
In order to leave comments, you need to log in
Authentication in apache by ip or password?
There is a certain internal system, at the moment it is strictly indicated (at the Apache level) that it can only be accessed from certain ip.
Sometimes you need to enter it with an ip that is not trusted.
Is it possible at the apache level to make a condition that if the ip is not trusted, then a login / password will be requested?
Well, or how to organize such a bunch is the easiest way?
Answer the question
In order to leave comments, you need to log in
Order deny,allow
Deny from all
AuthName "who the fuck you are?"
AuthUserFile /path/to/.htpasswd
AuthType Basic
Require valid-user
Allow from 192.168.0.0/24
Satisfy Any
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question