Jump to content

Apache 1.3.x - directory deny/allow config help


Outlander

Recommended Posts

I'm trying to configure apache (1.3.x on windows yech) to allow local

ip ranges (10. etc) and deny certain local machines (10.1.2.3.4 for

example) and to deny any other ips (ie, the internet).

 

I'm finding it hard to wrap my mind around how to do this easily in

the directives.

 

This is the current config snippet:

 

      <Directory C:/data/appserver/myhost/web/admin/>

              Order Deny,Allow

              Deny from All

              Allow from 10. 192.5. 192.168.

      </Directory>

 

which denies all but "local" ranges for an admin panel.

 

But now I need to be more specific and exclude say 10.1.2.3 from

within a local range as well.

 

This throws a spanner in the works.

 

I had one crazy idea to do this:

 

Order Deny,Allow

Deny from 10.1.2.3 11. 12. 13......202. 203........ 255.

Allow from 10. 192.5. 192.168.

 

 

Deny "the whole internet" using all ranges EXCEPT 10. 192. but

there must be an easier way surely?

 

Let me know if anyone has any brainwaves on this one...

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.