View previous topic :: View next topic |
Author |
Message |
gigi558 -
Joined: 30 Sep 2005 Posts: 3
|
Posted: Fri Sep 30, 2005 9:07 pm Post subject: IP Address Control hierarchy |
|
|
I want to allow access to / only for localhost.
I want to allow access to /world for all IP addresses.
I was not able to make the above configuration work.
Access from outside localhost to /world was always dissalowed, probably because the root path (/) was considered before the /world setting.
In Apache this was easy to do. Is there something I'm missing? Is it possible for Abyss to allow access to a children of a forbidden virtual path? |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Fri Sep 30, 2005 9:31 pm Post subject: |
|
|
Not sure without checking, but can't you just disallow / to all but localhost, then add a rule to allow access to /world/? _________________
|
|
Back to top |
|
|
gigi558 -
Joined: 30 Sep 2005 Posts: 3
|
Posted: Fri Sep 30, 2005 10:06 pm Post subject: |
|
|
MonkeyNation wrote: | Not sure without checking, but can't you just disallow / to all but localhost, then add a rule to allow access to /world/? |
That's exactly what I did. It didn't work.
Virtual Path: /
Order: Allow/Deny
Allow: 127.0.0.1
Deny: <empty>
Vitual Path: /world/
Order: Allow/Deny
Allow: *
Deny: <empty>
OR
Vitual Path: /world/
Order: Deny/Allow
Allow: <empty>
Deny: <empty> |
|
Back to top |
|
|
Tim1681 -
Joined: 17 Jan 2005 Posts: 160 Location: Bristol, CT, USA
|
Posted: Fri Sep 30, 2005 11:06 pm Post subject: |
|
|
In my head i would think that restricting access to "/" would also restrict access to all sub-folders of "/" including "/world/".
If my thought is correct then you can try putting the files u want to put in "/" into another folder, let's call it "/folder/" Then you can put an Index.htm file with a redirect script in it which sends them to "/world/" if they try to access "/". _________________ mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.
|
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Fri Sep 30, 2005 11:49 pm Post subject: |
|
|
gigi558 wrote: |
Virtual Path: /
Order: Allow/Deny
Allow: 127.0.0.1
Deny: <empty>
|
This should be Deny/Allow, to first deny all IPs, but not 127.0.0.1. |
|
Back to top |
|
|
gigi558 -
Joined: 30 Sep 2005 Posts: 3
|
Posted: Sat Oct 01, 2005 2:30 am Post subject: |
|
|
Tim1681 wrote: | In my head i would think that restricting access to "/" would also restrict access to all sub-folders of "/" including "/world/".
If my thought is correct then you can try putting the files u want to put in "/" into another folder, let's call it "/folder/" Then you can put an Index.htm file with a redirect script in it which sends them to "/world/" if they try to access "/". |
The exact same configuration works as intended in Apache 2.0 (I'm using the same document root folder for both servers).
The solution you proposed would work but it would be very inconvenient.
cmxflash wrote: | This should be Deny/Allow, to first deny all IPs, but not 127.0.0.1. |
Both configurations are equivalent. This part works fine. Only localhost is allowed to access the root. The other part, where I want to allow outside access to /world doesn't work. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Oct 01, 2005 9:45 am Post subject: |
|
|
gigi558,
Try changing the order of the declaration of the rules: declare the rule for /world then the rule for / . If it is still not working please send your abyss.conf file to support@aprelium and do not forget to add a reference to this forum message. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|