R
R
Rpsl2010-12-11 14:15:48
Apache HTTP Server
Rpsl, 2010-12-11 14:15:48

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

2 answer(s)
S
Sergey, 2010-12-11
@Rpsl

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

S
Stalker_RED, 2010-12-11
@Stalker_RED

and of course - RTFM !

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question