• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Subdomain problem x.name.com works and www.x.name.com doesnt

J

jackkalduu

Guest
My subdomain x.name.com works fine but when i write www.x.name.com it doesnt work. What i did wrong this time ?

When i access subdomain with "www" i get

"
This is the Pleskâ„¢ default page

If you see this page it means:

1) hosting for this domain is not configured
or
2) there's no such domain registered in Plesk.

For more information please contact
"

Without "www" subdomains works


Anybody knows what to do to access subdomains with www. ?

Is this also concern Plesk 8.0.1 ?

To create www prefix for subdomains you need to take the following steps:

1) Create vhost.conf file in the
/home/httpd/vhosts/domain.com/subdomains/subdomain/conf
directory with the following content:

ServerAlias www.subdomain.domain.com

2) Add appropriate A record to the DNS zone of the domain in
Server->Domains->domain.com->DNS

(specify this domain's IP address instead of 192.168.1.1):

www.subdomain.domain.com. A 192.168.1.1

3) Run wersrvmng utility to apply changes.

# /usr/local/psa/admin/sbin/websrvmng -v -a
 
Back
Top