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 myserver.com/~barca 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 http://httpd.apache.org/docs-2.0/how...n#troubleshoot and many more documents... Please help :)
Can you still access the secret folder when the .htaccess and .htpasswd files are there.
No, when I try to view http://myserver.com/~barca/secret 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, firstname.lastname@example.org 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 :(
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?
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--).
Heh, now, after many changes in httpd.conf, when I go to http://myserver.com/~barca/secret I get dialog window and when I enter correct user/pass I can enter :) I'm then in http://myserver.com/~barca/secret and when I press "Parent Directory" I'm in http://myserver.com/~~barca/ and I SEE "SECRET" DIRECTORY. But, when I go directly to http://myserver.com/~barca, then directory "secret" is still invisible.
It's from my access_log (when I opened URL http://myserver.com/~barca/secret and I get dialog window with ask for user/pass):
192.168.0.1 - - [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:
AuthName "Co sie mowi? ;]"
Allow from all
-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 01:14 AM.|