How to password protect my web sub-directories?

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


Joined: 26 Feb 2006
Posts: 17

PostPosted: Wed Jul 25, 2007 7:42 am    Post subject: How to password protect my web sub-directories? Reply with quote

Does anybody know how to password protect some files and/or folders form visitors?

I got to this page but i believe this is only for apache server.
http://tools.dynamicdrive.com/password/

Thanks,
Lucas.
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Wed Jul 25, 2007 11:20 am    Post subject: Reply with quote

Hi Lucas,
The easiest way to do this in Abyss is to use the Users and Groups and Access Control features.
It works the same way as using an htpasswd file.

By default, Access Control only works for items and folders located in htdocs.
If you want it to work for anything outside of htdocs, you must set an Alias for it.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jul 25, 2007 2:12 pm    Post subject: Re: How to password protect my web sub-directories? Reply with quote

lucorium,

Here is a small example to understand how to use password protection in
Abyss Web Server:

Assume that you have a subdirectory named /photos in your documents path (usually htdocs). Let's say you want to restrict access to this subdirectory (/photos) to your friends jack and mary.

First, you will have to declare the two users:
* Open the console
* Select Hosts > Configure > Users and Groups
* Press Add in the Users table
* Enter jack in the user name field and enter twice the password jack
will use to access restricted parts of your web site
* Then press OK
* Again, press Add in the Users table and declare the user mary the same way you did with jack.

Now press OK in the Users and Groups page and select Access Control. Press Add in the displayed table. Enter /photos in the virtual path field, enter a small description of the restricted area in the Realm field, for example "My Photos" (without " of course). Then check the checkboxes in front of the two users jack and mary in the Users table and verify that the order is allow/deny. Press OK and press Restart now.

Try to go to /photos using your browser (for example, using
http://127.0.0.1/photos ) and you be asked to enter your credentials. More information about deny/allow meanings is available in the documentation which ships with the web server.

Note that Abyss Web Server offers more flexibility as you can also set access rules for individual files (you can select them directly by using the Browse button next to the Virtual Path field). You can also set access rules for file/directory patterns using wildcards. For example, you can protect /music/*.mp3 (which means all the files in /music which extension is mp3). To protect all the web site, use / (a single slash) as the virtual path of the access rule.

For more information and examples, we recommend having a look on Abyss Web Server user's guide.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
lucorium
-


Joined: 26 Feb 2006
Posts: 17

PostPosted: Thu Jul 26, 2007 5:47 am    Post subject: Reply with quote

Thank you guys, works like a charm!

Lucas.
Back to top View user's profile Send private message
lucas22
-


Joined: 11 Mar 2008
Posts: 4

PostPosted: Tue Mar 11, 2008 2:53 pm    Post subject: Reply with quote

I'v follow exactly, step by step, example above, but it simply won't work.
I can still access (or everyone else) this specific subdirectory (subpage) without entering credentials??

Any idea?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Mar 11, 2008 2:58 pm    Post subject: Reply with quote

lucas22 wrote:
I'v follow exactly, step by step, example above, but it simply won't work.
I can still access (or everyone else) this specific subdirectory (subpage) without entering credentials??

Any idea?


Change the Deny/Allow box to the option that is not currently selected, then restart the server.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
lucas22
-


Joined: 11 Mar 2008
Posts: 4

PostPosted: Tue Mar 11, 2008 3:18 pm    Post subject: Reply with quote

I'v try every possible combination that is available in Access control and User and Groups.
It won't work.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Mar 11, 2008 3:26 pm    Post subject: Reply with quote

lucas22 wrote:
I'v try every possible combination that is available in Access control and User and Groups.
It won't work.


You must be doing something wrong.

Clear all the settings related to users and groups, and the access control, and start again.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
lucas22
-


Joined: 11 Mar 2008
Posts: 4

PostPosted: Tue Mar 11, 2008 6:44 pm    Post subject: Reply with quote

Ok, i have consider your proposal and done everything all over again.
And? Nothing has changed. Everything seem so simple and logic (manual, configuration) and yet, won't work!

It's hard to imagine, i know.
Back to top View user's profile Send private message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Wed Mar 12, 2008 6:38 am    Post subject: Reply with quote

Giving us a backgrounder of your Abyss configuration would help us figure out how to solve your problem, lucas22.

For instance, how did you set up your user or users? Next, what entry or entries did you put in the "Password Protected Virtual Paths" setting under Access Control? It would be better if you could make up a test user account and a test path for this purpose so you won't unnecessarily expose to us your secret paths.
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
lucas22
-


Joined: 11 Mar 2008
Posts: 4

PostPosted: Thu Mar 13, 2008 2:31 pm    Post subject: Reply with quote

I have performed an upgrade from v2.4 to v2.5 today and at first there was no difference. I noted also, that i have enabled anti-hacking protection and just of curiosity i'v disabling that.
And it works!!

Of course, i enable it again and it still works... :) I still haven't find what was wrong in the first place...
Back to top View user's profile Send private message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Sun Mar 16, 2008 3:21 pm    Post subject: Reply with quote

ah, the gods of voodoo IT must be playing with ya'. :-P

don't fret. sometimes those weird things happen to us too.
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
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