Posted By

naehrstoff on 12/19/08


Tagged

vhost Plesk


Versions (?)

Plesk vhost configuration


 / Published in: Other
 

  1. Create file "vhost.conf" in "%webroot%/conf/ if it doesn't exist already
  2. Update Plesk's configuration with "/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=childdomain.com"
  1. ServerAlias www.childdomain.com
  2. DocumentRoot /var/www/vhosts/parentdomain.com/httpdocs
  3.  
  4. ### vhost.conf ###
  5. <Directory /var/www/vhosts/parentdomain.com/httpdocs>
  6. <IfModule sapi_apache2.c>
  7. php_admin_flag engine on
  8. php_admin_flag safe_mode on
  9. php_admin_value open_basedir "/var/www/vhosts/parentdomain.com/httpdocs:/tmp"
  10. </IfModule>
  11. <IfModule mod_php5.c>
  12. php_admin_flag engine on
  13. php_admin_flag safe_mode on
  14. php_admin_value open_basedir "/var/www/vhosts/parentdomain.com/httpdocs:/tmp"
  15. </IfModule>
  16. Options -Includes -ExecCGI
  17. </Directory>

Report this snippet  

You need to login to post a comment.