Subdomain = sub.domain.com shows default page located in www.domain.com/sub/
Plesk shouldn't count subdomains as real domains Unless you want it setup as a real domain with its own space and features.
Here's how I setup subdomains without plesk counting it as an additional domain (i think) and it seems to work.
This is for PSA RPM install.
psa v2.0.1_build011129.18 os_RedHat 7.1
Assumes the ip used for name based domain is: 65.64.21.20
This is the same as what is mentioned in the RAQ forums.
login via ssh2
# cd /etc/httpd/conf
# cp -a httpd.conf httpd.conf.bak
# pico httpd.conf
added this line at bottom of httpd.conf:
Include conf/virtualips.conf
- Control X, and saved file.
# pico virtualips.conf
Added this in virtualips.conf for a subdomain:
ServerName sub.domain.com
ServerAlias sub.domain.com
DocumentRoot /home/httpd/vhosts/domain.com/httpdocs/sub
CustomLog /home/httpd/vhosts/domain.com/logs/access_log combined
ErrorLog /home/httpd/vhosts/domain.com/logs/error_log
- Control X, and saved file.
# /usr/local/psa/admin/sbin/my_apci_rst
Login to PSA as admin.
Click "Domains"
Click "domain.com"
Click "DNS"
Select "Record type:" A
Click "Add"
In 1st field enter: sub
In 2nd filed enter the ip address of the server: 65.64.21.20
Click "Update"
Subdomain: sub.domain.com now ready to use.
To add additional subdomains just add additonal
You can add additional stuff in virtualips.conf file to get cgi and stuff working for the subdomain.
It should only take about 5 minutes to setup. $5 setup each after 10 free subdomains sounds good for me.