APACHE httpd.conf Access [IP AND IP+login/password]

APACHE httpd.conf Access [IP AND IP+login/password]

Post by Nu » Thu, 04 Apr 2002 16:27:08

I want to protect a directory (/www) with IP only, AND IP+password. But How ?
I want a thing like this :

# A user must have a known IP address
Order allow,deny

#No login/password
Allow from xxx.xxx.xxx.xxx
Allow from aaa.aaa.aaa.aaa

#IP & login/password (I know what it's not good syntax !)
   Allow from yyy.yyy.yyy.yyy
   Require user arthur

satisfy any



1. Can I define srm.conf, access.conf in httpd.conf ?

I defined ErrorDocument 403 /sorry.htm
in srm.conf, because I found this instruction in this file in a commented
line with examples.

I Found I can define ErrorDocument in httpd.conf file instead of srm.conf
I didn't know this.

What I don't know is, If I can define all my src.conf and access.conf inside
or only some instructions.



Gerardo Blanco

2. AlphaStation 400 erratic power-up woes

3. IP numbers vs. hostnames in access.conf in apache 1.3.3.

4. Slackware 2 can't see 2nd IDE card

5. Apache access (IP address, then password)

6. RH6 on SBC with AMD Elan ?

7. Apache: Restrict access to IP _or_ password?

8. cant compile 2.0.25

9. Apache: Username/Password AND IP-Address access checking

10. access.conf IP-access prob.

11. Apache Access in httpd.conf

12. Script to update httpd.conf with current IP address?

13. Can you have a range of IP Addresses in httpd.conf?