IP Address Control hierarchy

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
gigi558
-


Joined: 30 Sep 2005
Posts: 3

PostPosted: Fri Sep 30, 2005 9:07 pm    Post subject: IP Address Control hierarchy Reply with quote

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 View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Fri Sep 30, 2005 9:31 pm    Post subject: Reply with quote

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 View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
gigi558
-


Joined: 30 Sep 2005
Posts: 3

PostPosted: Fri Sep 30, 2005 10:06 pm    Post subject: Reply with quote

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 View user's profile Send private message
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Fri Sep 30, 2005 11:06 pm    Post subject: Reply with quote

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 View user's profile Send private message AIM Address
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Fri Sep 30, 2005 11:49 pm    Post subject: Reply with quote

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 View user's profile Send private message
gigi558
-


Joined: 30 Sep 2005
Posts: 3

PostPosted: Sat Oct 01, 2005 2:30 am    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Oct 01, 2005 9:45 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group