Posted By

zachharkey on 02/17/09


textmate apache Plesk

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Plesk vhost.conf for symlinking httpdocs to another domain

 / Published in: Other

Use this when you want to serve a domain from the document root of another domain on the same box. Along with this config, you will want to replace the httpdocs directory with a symlink to the other domains doc root. (Don't forget to change ownership of the symlink to match the owner of the destination doc root.)

  1. <Directory /home/httpd/vhosts/>
  2. Options -Includes -ExecCGI -FollowSymLinks +Indexes
  3. <IfModule sapi_apache2.c>
  4. php_admin_flag engine on
  5. php_admin_flag safe_mode off
  6. php_admin_value open_basedir none
  7. </IfModule>
  8. <IfModule mod_php5.c>
  9. php_admin_flag engine on
  10. php_admin_flag safe_mode off
  11. php_admin_value open_basedir none
  12. </IfModule>
  13. </Directory>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: nizzydaddy on October 16, 2009

I don't think I am able to change the ownership on the symlink, because root creates the symlink. I have the root access, however, changing does not affect it at all.

any idea how?


Posted By: nizzydaddy on October 16, 2009

nice, I found it.

chown -h destination_owner httpdocs

You need to login to post a comment.