This is a discussion on Password protect OR allow from IP within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am trying to set up a server that can allow a certain IP (actually the server's IP) to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to set up a server that can allow a certain IP (actually
the server's IP) to download content without logging in while allowing all others to access the content after logging in. I would like to do this all in one directory. So, i'd like apache to first check the IP, if the IP is self, then allow. Otherwise, the second option would be to authenticate. Is this possible? I can get each to work in separate directories but am having no luck using the same directory. THANKS! |
|
|||
|
I'd also like to note that i'm using apache 2 and i've tried various
combinations, such as: <Directory /blah> order deny,allow deny from all allow from <exact ip address> <Basic authentication scheme> require user <user> satisfy any i get either the server open to all (no pw or ip restriciton) or just pw restriction. the ip check does not seem to be working. i've also tried it as order allow,deny and tried other people's scripts from this forum, to no avail. what's up with this? |