Skip to content

Instantly share code, notes, and snippets.

@slouma2000
Created April 7, 2015 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slouma2000/500daa121bbbbec6c6bf to your computer and use it in GitHub Desktop.
Save slouma2000/500daa121bbbbec6c6bf to your computer and use it in GitHub Desktop.
Multiple domains pointe to the same primarydomain, PLESK 12 change Docmentroot
1. Create a subscription for the additional domain in Plesk
2. Point the DocumentRoot to your primary Multisite domain
DocumentRoot /var/www/vhosts/primarydomain.com/httpdocs
SuexecUserGroup primarydomainuser psacln
<Directory '/var/www/vhosts/primarydomain.com/httpdocs'>
AllowOverride All
</Directory>
3. Disable PHP open_basedir
4. Enable PHP to run as FastCGI on the new DocumentRoot
<Directory /var/www/vhosts/primarydomain.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
5. Reload the domain configuration
reload the configuration for the additional domain (additionaldomain.com) and restart Apache:
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain additionaldomain.com
/etc/init.d/httpd graceful
Thanks Robert Staddon
http://abundantdesigns.com/2013/06/06/multiple-ssl-certificates-for-wordpress-multisite-domains-in-plesk-11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment