• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Subdomain WWW prefix

F

FaintingSpells

Guest
Hi, is it possible to display a subdomain in plesk as the following:

http://www.subdomain.domain.com

I know obviously you can display it as the following:

http://subdomain.domain.com

But how would I go about in displaying it in the aforementioned? Is there a proper way of doing it in Plesk 10?

I tried fiddling around with the DNS settings, such as CNAME and A records within Plesk... but it doesn't seem to work, or I'm doing it incorrectly, possibly.

Could anyone give me an example of how you successfully implement this?

I found this article: http://kb.odin.com/453

But that only applies to Plesk 7 to 9, so I don't want to risk in even trying it with 10 or would it work in 10 also?

Anyone?
 
Yup, I have it exactly like that currently.


Record Type: CNAME
Domain Name: www.submdomain
Canonical name: subdomain.domain.com


Which shows up as such under the main DNS settings list:

www.subdomain.domain.com. CNAME submdonain.domain.com.

Do I have to restart any service of the sort, possibly?
 
I don't think I quite grasp what you mean by "resolvable from outside"? Could you elaborate a bit more?
 
This is what I get:

Using domain server:
Name: ns1.domain.net
Address: ##.###.###.##53
Aliases:

www.submdomain.domain.com has address ##.##.##.###
 
Last edited by a moderator:
Okie-dokie, can do, will do so later on today. Do I post it here, or send it to you via PM, or some other method?
 
Ok, lets hope I did this right :p

Plesk Panel, 10.1.1. CentOS 5.5 (final), x86-64

Unable to resolve WWW prefix for subdomains via DNS settings found within Plesk.

Steps taken:

1) Control Panel > Websites & Domains > DNS Settings

2) Add Record

3) Record Type: CNAME
Domain Name: www.subdomain
Canonical Name: subdomain.domain.com

4) Direct web browser to www.subdomain.domain.com

Actual Result:

www.domain.com's index is actually displayed

Expected Result:

www.subdomain.domain.com's is expected to be displayed
 
I have forwarded it to developers. I will update thread with results as soon as I receive it.
 
CNAME record itself without webserver configuration does not make sense:
If web-server configuration does not have virtual host matched to www.subdomain... than even you set DNS record you will see default page for this IP address. I do not think that www absence for subdomains is a bug because in Plesk 10 web-server configuration can be easily changed by you with help of Apache Configuration Guide http://download1.parallels.com/Plesk/PP10/10.1.1/Doc/en-US/online/plesk-apache-configuration-guide/
 
We had the same problem using Plesk 10.2, the way we got around it was to add it twice in plesk but point to the same document root.

So Add New Subdomain:
Subdomain name* : subdomain.domain.com
Document Root: /subdomaindocroot

Ok that, then Add another New Subdomain:
Subdomain name* : www.subdomain.domain.com
Document Root: /subdomaindocroot
 
Exactly. We are having this issue with www also. If our domain is not the default domain for its IP address, even www and non-www URLs is not pointing to the same hosting. I'm hoping plesk resolves this issue soon since we are hosting so many websites and have to come up with a fast solution.
 
Back
Top