D
D
Dmitry Los2014-05-13 22:34:25
Apache HTTP Server
Dmitry Los, 2014-05-13 22:34:25

How to enable http authorization on apache for all but a specific ip?

Good day! It is required to enable http authorization for all users, except for the given ip. htaccess uses the following code:

AuthName "Access Denied"
AuthType Basic
AuthUserFile /.htpasswd
require valid-user

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2014-05-13
@DemonStore

According to the documentation httpd.apache.org/docs/2.2/howto/auth.html
it would be something like this:
AuthName "Access Denied"
AuthType Basic
AuthUserFile /.htpasswd
require valid-user
Order allow,deny
Allow from internal.com
Satisfy any

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question