On Tuesday 13 July 2004 18.51, Rikard Johnels wrote:
This is the defaul-server.conf i use right now. The indexes arent shown in the userdirs, User dirs are visible, (eg. www.rikjoh.com/rikjoh ) BUT the top level (http://www.rikjoh.com/) barfs an error 403 The error log shows [Tue Jul 13 18:50:10 2004] [error] [client 192.168.1.3] client denied by server configuration: /home/public_html How come the server thinks the top level to be a user dir with public_html?
Because you have a messed up regular expression
AliasMatch ^/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
That expression matches the username against any string whatsoever, including one of zero length. In other words, this regexp matches your entire server into the home directories :) You really need some string to set the userdirs apart from the "main" directories. The default is ~, the example in default-server.conf uses /user/, you have nada. Put something in there, or revert to the default