Created
April 7, 2015 10:12
-
-
Save slouma2000/500daa121bbbbec6c6bf to your computer and use it in GitHub Desktop.
Multiple domains pointe to the same primarydomain, PLESK 12 change Docmentroot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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