• 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

ssl and subdomain

M

met00

Guest
Problem:

domain: test.com
subdomain: store.test.com

when a person is at store.test.com they are shopping on an OSC store. when they click on the login it sends them to https:/store.test.com.

Unfortunately this doesn't quite work as store.test.com via https: doesn't get created by Plesk when you create the sub-domain in Plesk (there is no httpsdocs created for the sub-domain, and there is no 443 virtual host created by plesk for the subdomain).

Since Plesk fails to create a virtual SSL host for the sub-domain the question is, how do you work around that?

I have attempted to work around that by creating the httpsdocs directory for the www.test.com as a symbolic link to the subdomain/store directory. Then I added +followsymlinks to the options in the vhost_ssl.conf file for that directory and I added ServerAlias store.test.com to the virtual host for the 443.

Result:

when I go to the URL: https:www.test.com or https://store.test.com the system offers me up the plesk SSL cretificate not the stores SSL certificate. and then it shows the apache test page, not the approriate sub-domain pages.

any help in getting Plesk to allow apache to send SSL to a sub-domain and serve up the correct SSL certificate would be helpful.

The sad part is that this store was operational in this configuration on a shared unix server, so I know it can be done. But Plesk seems to be standing in the way of getting this done.
 
The simplest way is to create store.test.com as a normal domain, not as subdomain.
 
Originally posted by defencer
The simplest way is to create store.test.com as a normal domain, not as subdomain.

I understand, but test.com has been doing non-store services from 1995. It has great search engine placement showing up in google in the #1 position for many things. This has translated to fantastic positioning for the store since it shares the domain.

On top of that, the store and the non-store site helps with Alexa and any number of additional things that increase visibility and give it a competitive edge in a crowded market space.

There is no option of going to a "different domain" as that would be detrimental to the business operation.

So, the question is "how to do this with Plesk. I find it hard to believe that this is not possible. If this is not possible it is a major failing of Plesk to not support SSL except on the primary domain.
 
Probably I didn't catch something. Or may be you dodn't :) What I mean is that you will have two normal domains test.com and store.test.com. These pair will not be disttinguished from other pair (domain and subdomain) from theexternal point of view.

This two solutions will have the difference only inside plesk.
 
Originally posted by defencer
Probably I didn't catch something. Or may be you dodn't :) What I mean is that you will have two normal domains test.com and store.test.com. These pair will not be disttinguished from other pair (domain and subdomain) from theexternal point of view.

This two solutions will have the difference only inside plesk.

Whoa! Am I understanding you right.

1) go into plesk and create a "domain" that is store.test.com
2) set up that domain with the SSL cert

Now, the IP I have for test.com is exclusive (needed for the SSL Cert). So I should change that exclusive domain from test.com to store.test.com and place test.com on a shared IP, or can I use the exclusive IP for both?

This is getting weird, but interesting. :)
 
Of course you can use the same exclusive IP in both domain. But if this is an exclusive IP address, then both domains must belong to the same client.

Also if you an admin in plesk server, then you can use even shared IP for both domains and assign your certificate to the shared IP, and put this IP to the IP Pools of several clients. Of course all domains will have the same certificate, if they will use SSL hosting on that IP.
 
can't create the domain

Plesk won't let me create the domain
store.test.com

is that because there is already a sub-domain of that name?
 
Yes, you would want to delete the sub-domain first, then create the new 'store.domain.com' as a full domain
 
Back
Top