Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Folder is not showing up on web when there's a .htaccess Authenticatio

Status
Not open for further replies.

qwefASG

Technical User
Apr 7, 2011
7
AU
Folder is not showing up on web when there's a .htaccess Authentication required.

How do i let it show up on the web? (still with .htaccess Authentication required.)

PS: The folder will show up, if there's a .htaccess file in it but without Authentication required.

PPS: Fancyindex is enabled in httpd.conf

Thanks!! :D
 
Thanks for the quick reply!

here it is:


<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
AuthUserFile C:\#AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
Options +Indexes
 
Hi

Your configuration file works for me.

Two things to check :
[ul]
[li]Does [tt]AllowOverride[/tt] allow the local settings you made ?[/li]
[li]Is that path to .htpasswd correct ?
Customizing Apache for Windows said:
The directives that accept filenames as arguments must use Windows filenames instead of Unix ones. However, because Apache may interpret backslashes as an "escape character" sequence, you should consistently use forward slashes in path names, not backslashes. Drive letters can be used; if omitted, the drive of the SystemRoot directive (or -d command line option) becomes the default.
( Apache HTTP Server Version 2.2 | Platform Specific Notes | Using Apache HTTP Server on Microsoft Windows | Customizing Apache for Windows )
[/li]
[/ul]

Feherke.
 
Yes,
AllowOverride allow the local settings that i made.
path to .htpasswd is correct

well,I think I should make the question more clear.

So, when i enabled the fancyindex that kind of things, when i goto root url like the directory will show up.
e.g. there are links for folders like:
*********
Title: Index of /

Flv/
SND/
A/
B/
C/
*********

If I create a empty .htaccess then put it in "SND/" folder

it will be the same result as above.

But when I set the password in .htaccess file for "SND/" folder,
and I open the again.
the directory will looks like:

*********
Title: Index of /

Flv/
A/
B/
C/
*********

But when I type the path in url i can get in "SND/" folder
e.g.
So, then problem is, how can I make the "SND/" visible while it has password?
 
PS:

correct
*****
But when I type the path in url i can get in "SND/" folder WITH PASSWORD
e.g.
So, then problem is, how can I make the "SND/" visible while it has password?
*****
 
BTW:

If I change:
*****
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
AuthUserFile C:\#AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
Options +Indexes
*****

TO

*****
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
AuthUserFile C:\#AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
#require valid-user
Options +Indexes
*****

Which is comment out the "require valid-user"
then the "SND/" will show up, but I need password for it and also need it shows up in directory
 
Hey! You are amazing!
IndexOptions +ShowForbidden
That's exactly what i want!
Thanks a lot!!! Thanks for your patience and time!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top