LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-12-2004, 07:02 AM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Apache2: showing password protected directories


Hello

I have a number of password protected folder on my home server. They are all sub directories of a directory which everyone has access to. The server auto indexes each directory.

Eg: everyone can access http://blah.blah.com/~hamish/ but the sub directory http://blah.blah.com/~hamish/protected/ has a .htaccess file in it requiring a password.

At the moment, if you are in http://blah.blah.com/~hamish/, you can't see the "protected" directory.

I would like to be able to see the folder link of the protected folder so I can click on it and then enter my password. At the moment, have to type in the full address (http://blah.blah.com/~hamish/protected/), and then put my password in, before I can see inside that folder.

The question is, how can I show the password protected folder in the non-password protected directory?

I think it is something to do with AllowOverride, but I'm not quite sure how that works.

Thanks in advance
Hamish
 
Old 11-12-2004, 01:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
You will need to set the Indexes option in the Options directive.
 
Old 11-13-2004, 12:43 PM   #3
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Do you know what I need to set it to?

thanks
Hamish
 
Old 11-13-2004, 01:34 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
yes, "Indexes" - ie you need a line like:
Options Indexes

Within the <Directory> directive that used to control the directory (or parent directory) you are having problems with.
 
Old 11-14-2004, 05:25 AM   #5
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Hey, thanks for that.

I have put that in the <Directory> part for the directory in which the protected directory lives (ie http://blah.blah.com/~hamish/ )

However, it still doesn't show the protected directory in that folder.

Any other suggestions?
Hamish
 
Old 11-14-2004, 11:54 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
This seems odd. Does it show non protected directories?
 
Old 11-14-2004, 05:00 PM   #7
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Yeah, it shows all the non protected directories. Just not the protected ones.
Is it not an override thing?

hamish
 
Old 11-15-2004, 01:50 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
I have never seen this to be honest. The only reference I can see to anything like it is in the 2.1 docs:
http://httpd.apache.org/docs-2.1/mod....showforbidden
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
video streaming in .htaccess password protected directories Houseofcyn Linux - Newbie 1 12-20-2004 03:05 PM
add image to protected directories login box tommytomato Linux - Newbie 2 05-25-2004 09:37 AM
protected directories tommytomato Linux - Security 2 01-11-2004 11:34 PM
password protected directories dsgdevil Linux - General 1 02-17-2003 01:02 AM
Password Protected Directories TheSockMonster Linux - Security 2 05-31-2002 05:07 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration