LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 12:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You will need to set the Indexes option in the Options directive.
 
Old 11-13-2004, 11:43 AM   #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, 12:34 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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, 04: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, 10:54 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
This seems odd. Does it show non protected directories?
 
Old 11-14-2004, 04: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, 12:50 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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



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 02:05 PM
add image to protected directories login box tommytomato Linux - Newbie 2 05-25-2004 08:37 AM
protected directories tommytomato Linux - Security 2 01-11-2004 10:34 PM
password protected directories dsgdevil Linux - General 1 02-17-2003 12:02 AM
Password Protected Directories TheSockMonster Linux - Security 2 05-31-2002 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 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
Open Source Consulting | Domain Registration