/ 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"
                2. Update Plesk's configuration with "/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=childdomain.com"
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
ServerAlias www.childdomain.com
DocumentRoot /var/www/vhosts/parentdomain.com/httpdocs
### vhost.conf ###
<Directory /var/www/vhosts/parentdomain.com/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/parentdomain.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/parentdomain.com/httpdocs:/tmp"
</IfModule>
Options -Includes -ExecCGI
</Directory>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                