Depending on how you intend to use a site created in Plesk, for example, to host web pages or to forward HTTP requests to another site, you can choose from three hosting types that define the structure of a virtual host created for this site. The hosting types are the following:
The virtual host structure differs depending on hosting type:
<VirtualHost 10.0.69.4:80>
ServerName "domainXX.tst:443"
ServerAlias "www.domainXX.tst"
UseCanonicalName Off
<IfModule mod_suexec.c>
SuexecUserGroup "domainXX.tst" "psacln"
</IfModule>
ServerAdmin "admin@mailserver.tst"
DocumentRoot "/var/www/vhosts/domainXX.tst/httpdocs"
CustomLog /var/www/vhosts/domainXX.tst/statistics/logs/access_ssl_log plesklog
ErrorLog "/var/www/vhosts/domainXX.tst/statistics/logs/error_log"
........................................................................
<VirtualHost 10.0.69.2:80>
ServerName "SFdomain.tst.tst"
ServerAlias "www.SFdomain.tst.tst"
ServerAdmin "admin@mailserver.tst"
RedirectPermanent / "http://easytofinddomain.tst/"
</VirtualHost>
index.html
with the <FRAMESET
> tag that defines the frame and address of the website to show in the frame. Therefore, the configuration of a frame forwarding virtual host resembles website virtual host configuration:<VirtualHost 10.0.69.2:80>
ServerName "FFdomainXX.tst"
ServerAlias "www.FFdomainXX.tst"
ServerAdmin "admin@mailserver.tst"
DocumentRoot "/var/www/vhosts/FFdomainXX.tst/httpdocs"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
</VirtualHost>
When you create a website inside a subscription in Server Administration Panel, the domain hosting type is set to website hosting. When you create a domain in Control Panel, you can set a different hosting type. Domain owners are free to change the hosting types of their domains whenever they wish.
To change the hosting type of a domain, open Control Panel > Websites & Domains, click the domain name, and go to the Hosting Type > Change.