Plesk vhost.conf for symlinking httpdocs to another domain


/ Published in: Other
Save to your folder(s)

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.)


Copy this code and paste it in your HTML
  1. <Directory /home/httpd/vhosts/example.com/httpdocs>
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.