Forum Moderators: phranque

Message Too Old, No Replies

userdir configuration

         

openstream

3:21 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



Hi all,

If I enter users.mydomain.com/~newdomain.com into my browser I get a

Forbidden
You don't have permission to access /~newdomain.com/ on this server.

error.

The log file says
Quote:

Symbolic link not allowed:
/var/www/virtual/newdomain.com/htdocs/index.php

I played around with the open_basedir directive a little bit, but could not solve the problem.

Any help would be very well appreciated.

Cheers,
Nick

P.S. My userdir.conf looks like this

NameVirtualHost xx.#*$!.xxx.xx

<VirtualHost users.mydomain.com>
ServerName users.mydomain.com
DocumentRoot /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir /var/www/virtual/*/htdocs
UserDir disabled root

<Directory /var/www/virtual/*/htdocs>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
</VirtualHost>

jd01

1:40 am on Aug 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi openstream,

Welcome to WebmasterWorld.

Not my forte, but I believe you need AllowOverride FileInfo

<VirtualHost users.mydomain.com>
ServerName users.mydomain.com
DocumentRoot /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>

Justin

Added: You may also need to define the index page/type
DirectoryIndex index.htm index.html

openstream

10:27 am on Aug 31, 2005 (gmt 0)

10+ Year Member



Hi Justin,

Thanks for your reply.

The problem wasn't actually in the userdir.conf file :-)

I had an old symlink for the index.php file with a wrong target in the virtual host's public_html folder and therefore I got the "no permission to access" error.

Everything works fine now!

Cheers,
Nick