HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   .htaccess and .htpasswd files in symbolic link directories. (http://www.howtoforge.com/forums/showthread.php?t=5740)

tarndt 23rd July 2006 21:11

.htaccess and .htpasswd files in symbolic link directories.
 
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 16:54

Did you have a look here? http://httpd.apache.org/docs/2.0/howto/auth.html

tarndt 25th July 2006 20: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 08:51

Quote:

Originally Posted by tarndt
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 10:28

Also have a look at Apache's error log.


All times are GMT +2. The time now is 08:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.