PDA

View Full Version : Protect directory BUG .htpasswd


CubAfull
2nd August 2008, 23:44
After creating a protected directory in ISPConfig 2.2.24 Web-FTP to enter my joomla administration I get an 500 Error after login to the .htaccess window.

in my /var/www/web1/log/error.log i found...

[Sat Aug 02 15:50:57 2008] [error] [client xxx.xxx.xxx.xxx] (2)No such file or directory: Could not open password file: /var/www/web1/administrator/.htpasswd
[Sat Aug 02 15:51:08 2008] [error] [client xxx.xxx.xxx.xxx] (2)No such file or directory: Could not open password file: /var/www/web1/administrator/.htpasswd
[Sat Aug 02 15:51:18 2008] [error] [client xxx.xxx.xxx.xxx] (2)No such file or directory: Could not open password file: /var/www/web1/administrator/.htpasswd


The problem is that the script does not include the web directory in .htaccess

After replacing manually in .htaccess
AuthUserFile /var/www/web1/administrator/.htpasswd

to

AuthUserFile /var/www/web1/web/administrator/.htpasswd

everything worked perfectly :)

falko
3rd August 2008, 14:51
We will check this.

CubAfull
4th August 2008, 07:22
Thanks falko :)

Maybe this happens when you change the default FTP directory ?. I changed mine to DefaultRoot ~/web

falko
4th August 2008, 11:54
In your proftpd.conf? No, this doesn't have any effect on ISPConfig.