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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess directories hidden ?

Status
Not open for further replies.

roeiboot

Technical User
Joined
Feb 10, 2002
Messages
241
Location
US
oi~

why would directories which contain a .htaccess file be hidden from the directory list ? i want them to be visible but obviously password protected.

thanks..
 
This is a new one on me. Can you post the directives from the directory container in question and also the .htaccess file. Another question is if you have direct access to httpd.conf, why do you need .htaccess files?
 
here are the directives:

<Directory "/">
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory "/var/ Options Indexes FollowSymLinks
AllowOverride All
# Allow from from all
Order Deny,Allow
</Directory>

<Directory "/var/ Options Indexes MultiViews
AllowOverride All
Allow from from all
Order allow,deny
</Directory>

<Directory "/var/ Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>

here's the .htaccess:
AuthName "private dir"
AuthUserFile /var/AuthType Basic
<Limit GET POST PUT>
require user rudeboy admin
</Limit>

can i set these settings and pw protect separate directories using the httpd.conf ?
 
i now 'protected' the directory using Digest (and in the httpd.conf) as described in the Apache doc's but still the protected directory -which works- is not in the directory-list as i want it to be.

entry in my httpd.conf:
<Directory "/var/AuthType Digest
AuthName "private"
AuthDigestFile /var/Require valid-user
Options +Indexes
</Directory>

thanks.
 
I see a couple of things but they don't relate to your problem. First, the Order directive should come before the Allow from directive. You also only need the word "from" once. now getting back to your problem. As I said this is a new one on me bcause I don't know what could be causing just the directories with .htaccess to be hidden. Have you tried deleting the .htaccess file to see if it shows up in the index again? If not then it has nothing to do whith .htaccess. I would look more at the directives that have to do with displaying it. For example, are those directories in the list after the directive "IndexIgnore"? It may be something simple but right now, nothing comes to mind on what could be causing that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top