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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.