S
sibinkc
Guest
Follow these steps to create an addon domain "addondomain.com" which points to "maindomain.com/addondomain"
1. Log into the Plesk control panel of maindomain.com
2. Create a Domain Alias for it as addondomain.com
3. Create a directory named "addondomain" on the httpdocs and or httpsdocs directories for "maindomain.com"
NOTE : Do not forget to give proper ownership if you are creating from back end as root user
4. Open the 'httpd.include' file for "maindomain.com"
5. Remove all the the ServerAlias entries for "addondomain.com" from this file
ServerAlias addondomain.com
ServerAlias www.addondomain.com
6. Create a new VirtualHost entry for "addondomain.com" as follows
<VirtualHost 10.0.0.3:80>
ServerName addondomain.com:80
ServerAlias www.addondomain.com
SuexecUserGroup zanaboli1372com psacln
ServerAdmin "[email protected]"
DocumentRoot /var/www/vhosts/maindomain.com/httpdocs/addondomain
ErrorLog /var/www/vhosts/maindomain.com/statistics/logs/error_log
ScriptAlias /cgi-bin/ /var/www/vhosts/maindomain.com/addondomain/cgi-bin/
</VirtualHost>
NOTE : Do not forget to change the DocumentRoot to '/var/www/vhosts/maindomain.com/httpdocs/addondomain'
NOTE : If you wish to use SSL for this domain create another VirtualHost entry as above with the port 443
instead of 80 (Also change httpdocs' to 'httpsdocs' in the DocumentRoot)
7. Save the file 'httpd.include'
8. Restart apache
service httpd restart
9. Place a test index.html page on '/var/www/vhosts/maindomain.com/httpdocs/addondomain'
10. Check "addondomain.com" by accessing through a browser
11.
1. Log into the Plesk control panel of maindomain.com
2. Create a Domain Alias for it as addondomain.com
3. Create a directory named "addondomain" on the httpdocs and or httpsdocs directories for "maindomain.com"
NOTE : Do not forget to give proper ownership if you are creating from back end as root user
4. Open the 'httpd.include' file for "maindomain.com"
5. Remove all the the ServerAlias entries for "addondomain.com" from this file
ServerAlias addondomain.com
ServerAlias www.addondomain.com
6. Create a new VirtualHost entry for "addondomain.com" as follows
<VirtualHost 10.0.0.3:80>
ServerName addondomain.com:80
ServerAlias www.addondomain.com
SuexecUserGroup zanaboli1372com psacln
ServerAdmin "[email protected]"
DocumentRoot /var/www/vhosts/maindomain.com/httpdocs/addondomain
ErrorLog /var/www/vhosts/maindomain.com/statistics/logs/error_log
ScriptAlias /cgi-bin/ /var/www/vhosts/maindomain.com/addondomain/cgi-bin/
</VirtualHost>
NOTE : Do not forget to change the DocumentRoot to '/var/www/vhosts/maindomain.com/httpdocs/addondomain'
NOTE : If you wish to use SSL for this domain create another VirtualHost entry as above with the port 443
instead of 80 (Also change httpdocs' to 'httpsdocs' in the DocumentRoot)
7. Save the file 'httpd.include'
8. Restart apache
service httpd restart
9. Place a test index.html page on '/var/www/vhosts/maindomain.com/httpdocs/addondomain'
10. Check "addondomain.com" by accessing through a browser
11.