• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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