PDA

View Full Version : .htaccess and .htpasswd files in symbolic link directories.


tarndt
23rd July 2006, 22:11
I have a symbolic link in one of my accounts created in ISPConfig:

So in
/home/www/web8
I have:
web -> /var/www/html/dealer/

Question is...How do I password protect this directory. Because the directory is owned by another user, it does not show in Web_FTP.
So I password protect another folder, and modified the .htaccess file and moved to the /var/www/html/dealer folder. This however returns a 500 Internal Server Error. Ownership of the .htacess and .htpasswd files are associated with the web8 user. I have also tried specifying the .htpasswd as both the symbolic link and the actual directory from within the .htaccess file. Any suggestions?

falko
24th July 2006, 17:54
Did you have a look here? http://httpd.apache.org/docs/2.0/howto/auth.html

tarndt
25th July 2006, 21:51
Ya, I had it set up in httpd.conf before installing ISPConfig. It seems as though after installin ISPConfig however, these directives are being ignored. Any other suggestions?

till
26th July 2006, 09:51
Ya, I had it set up in httpd.conf before installing ISPConfig. It seems as though after installin ISPConfig however, these directives are being ignored. Any other suggestions?

The WebFTP uses also authentication with .htpassword files to protect directories, so this feature is enabled for the websites in ISPConfig.

Please check your .htaccess and .htpasswd file if the directives are correct.

falko
26th July 2006, 11:28
Also have a look at Apache's error log.