i'm trying to get mod_authz_owner working with apache, so when someone tries to access the /var/www/html/pma file they need to put in pma's username and password.
(there is a reason for doing it this way so please don't offer any other solutions)
this is what i have done
[root@dhcppc2 html]# mkdir pma
[root@dhcppc2 html]# chown pma
ma pma/
[root@dhcppc2 html]# chmod ug+rwx pma
[root@dhcppc2 html]# htpasswd -c /etc/httpd/conf/htpasswd pma
New password:
Re-type new password:
Adding password for user pma
i added the following to the /etc/httpd/conf/httpd.conf file
<Directory /var/www/html/pma>
AuthName "only pma has access"
AuthType basic
AuthUserFile /etc/httpd/conf/htpasswd
require file-owner
</Directory>
then i restart apache
/etc/init.d/httpd restart
i thought this way a new feature of apache 2.2
http://httpd.apache.org/docs/2.2/mod...thz_owner.html
this is the in /var/log/httpd/error_log
[Wed Mar 29 16:07:06 2006] [error] [client 192.168.1.34] (2)No such file or directory: Authorization of user pma to access /pma/index.php failed, reason: could not stat file /var/www/html/pma/index.php
[Wed Mar 29 16:07:06 2006] [error] [client 192.168.1.34] (2)No such file or directory: Authorization of user pma to access /pma/index.html failed, reason: could not stat file /var/www/html/pma/index.html
[Wed Mar 29 16:07:06 2006] [error] [client 192.168.1.34] (2)No such file or directory: Authorization of user pma to access /pma/index.html.var failed, reason: could not stat file /var/www/html/pma/index.html.var
from that i think it's trying to find a file, can someone tell me how to change it so it doesn't require a file in that directory?