symlink / configuration help please

I am migrating a client from another server to one of my servers.

The client has a developed 2 domains in a common area with one domain setup as a subdirectory of the other.

Before I get too far into this here is my server config:

running plesk 7.0.3 on RHEL3 Apache 2.0.46

Summary :

- mydomain1.com is a subdirectory of main mydomain2.com domain ( /fr/ )
- We have created separate domain accounts in plesk for mydomain2.com, mydomain1.com
- in the future, I need to setup ssl certs for both accounts via plesk...

Possible solution :
- symlink from /home/httpd/vhosts/mydomain1.com/httpdocs ->
/home/httpd/vhosts/mydomain2.com/httpdocs/fr/
- permissions/ownership of /home/httpd/vhosts/mydomain2.com/httpdocs/fr/ should be for
mydomain1.com I guess
- mydomain1.com username : user1
- mydomain2.com username : user2


Does this sound alright with you?


I tried to implement this solution as follows:

###

cd /home/httpd/vhosts/mydomain.com/
mv httpdocs/ bak.httpdocs
ln -s /home/httpd/vhosts/mydomain.ca/httpdocs/fr ./httpdocs
chown user1saserv httpdocs
chown -Rf user2sacln httpdocs/*

###

I also added a vhost.conf in the mydomain1.com domain as follows:
Options Indexes FollowSymLinks


but, this doesn't seem to work. Now when mydomain1.com is brought up, we get a 403 access denied error.
(mind you, the DNS has not been changed, so we are accessing the domain via an IP address)

Browser reports as follows :

##
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.46 (Red Hat) Server at xxx.xxx.xxx.xxx Port 80
##

Corresponding logfile entry looks like this:

##

[Thu Dec 16 16:19:10 2004] [error] [client xxx.xxx.xxx.xxx] Symbolic link not allowed: /home/httpd/vhosts/mydomain1.com/httpdocs

Any help would be greatly appreciated.

Thanks!

 

 

 

 

Top