-   Linux - General (
-   -   Directory with .htaccess is invisible?! (

Barca 02-23-2005 04:55 AM

Directory with .htaccess is invisible?!
Hi, my problem is somehow strange ;)
On my Apache server I have direcotry /home/barca/www/secret. When I put to "secret" files .htaccess and .htpasswd, "secret" directory is NO MORE VISIBLE in web browsers. I mean, when I open i see no directory "secret" anymore. After deleting file .htaccess, directory "secret" is shown.
When I put .htacess to /home/barca/www, everything is fine, he asks me for login and password. So, I was comparing settings about those two directories but din't find anything. Files .htaccess and .htpasswd are OK, because I tested them on other web server.
Yes, I've read and many more documents... Please help :)

ToniT 02-23-2005 06:22 AM

Can you still access the secret folder when the .htaccess and .htpasswd files are there.

Barca 02-23-2005 08:13 AM

No, when I try to view I get:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

I had set AllowOverride All and it didn't change anything :(

ToniT 02-23-2005 09:44 AM

Well, that ISE the reason why secret directory is not seen in the listing.

Now if you follow the instructions on screen and see your error log, what you have?

KimVette 02-23-2005 09:45 AM

Posting your .htaccess file and a sample line (create a new name/password pair for this exercise) from your AuthUserFile would be helpful in diagnosing it -- along with the full filename (e.g., /var/www/vhost/secret/.htaccess) and permissions (e.g., -rwxr--r--).

Barca 02-23-2005 12:28 PM

Heh, now, after many changes in httpd.conf, when I go to I get dialog window and when I enter correct user/pass I can enter :) I'm then in and when I press "Parent Directory" I'm in and I SEE "SECRET" DIRECTORY. But, when I go directly to, then directory "secret" is still invisible.

It's from my access_log (when I opened URL and I get dialog window with ask for user/pass): - - [23/Feb/2005:19:17:28 +0100] "GET /~barca/secret HTTP/1.1" 401 401 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"

In /home/barca/www/secret I have .htpasswd and .htaccess:

AuthUserFile /home/barca/www/secret/.htpasswd
AuthName "Co sie mowi? ;]"
AuthType Basic
Require valid-user
Order allow,deny
Allow from all

Permissions are:

-rw-r--r-- 1 barca users 138 2005-02-23 19:15 .htaccess

PS You can treat "Co sie mowi?" as polish equivalent for Bugs Bunny's "What's up doc?" :D

All times are GMT -5. The time now is 08:07 AM.