• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

SSL subdomains

A

Aristo

Guest
Hi,

Can we access a subdomain using the SSL (HTTPS) address?

like https://sub.domain.com
and http://sub.domain.com

I know that the root site have httpsdoc and httpdocs.

I also tried the option: Use a single directory for housing SSL and non-SSL content

for the root site, I restart apache and it still point to the httpsdocs

So my 2 questions are:
1. Can I use https for subdomain
2. Why after checking the single directory for SSL and Non-SSL option it still goes to the httpsdocs folder.

Thank you!
 
1. You can not use https for subdomains.
2. After you check the option to use httpdocs for SSL, try to execute in command line:

/usr/local/psa/admin/bin/websrvmng -a
 
Also, you can create the sub.domain.com as an actual domain, thus giving you the ability to have ssl over wildcard domains.

:)
 
After all what is the propper solution?
The command line solution from hardweb - how it works?:confused:
 
no just create the subdomain as an actual domain in plesk and then use your cert for this subdomain... In the cert section...

Hope this helps
 
Hardweb - I am curious as to why you would post that '1. You can not use https for subdomains.' I do it all the time, here is an example of one on my test server you can browse to right now as a test:

https://plesksub.james-yee.net/

And I have done it by creating the subdomain either with Plesk, or with 4PSA Total Domains.
 
The solution of jamesyeeoc is working without creating the subdomain as an actual domain in plesk? Because I'm searching for a solution without creating for each subdomain allways a normal domain account.:rolleyes:
 
Originally posted by diesof
The solution of jamesyeeoc is working without creating the subdomain as an actual domain in plesk?

I do not create the subdomain as a full domain, I use either the normal Plesk subdomain creation, or the 4PSA TotalDomains subdomain creation feature. There are certain conditions where you would need to create a sub as a full domain, but I don't like using domain licenses unnecessarily. I use subdomains for phpMyAdmin, Cacti, phpSysInfo, and other things where I want the data secured by SSL, and many of them I also password protect for added security.

Because I'm searching for a solution without creating for each subdomain allways a normal domain account.:rolleyes:

See my comments above. I do not create subdomains as full domains unless I absolutely have to (not often).

The link to the 'plesksub' subdomain in my previous post, this is a subdomain which I created using the normal Plesk subdomain creation in the control panel. As you can see, the link is the SSL (https) and it works.
I just modified the index pages in each folder (httpdocs and httpsdocs), so if you browse to each one, you will see it is pulling up different pages:

http://plesksub.james-yee.net
https://plesksub.james-yee.net

This is just a test server, so after a couple of days, the subdomains may not be there.
 
Sorry - but I did'nt understand which modification you did in the example index-file so that SSL is working also in the subdomain httpdocs directory.
My Plesk version is 7.5.4 and and I've selected: Use a single directory for housing SSL and non-SSL content for the full domain. But I've allways a "Not Found" on the screen.:confused:
 
I just don't understand how can you use HTTPS in subdomains if you don't have any httpsdocs in your subdomains folder. Also, No options is available for housing ssl and non-ssl webpage as standard domain.
 
Strange. I do have an httpsdocs folder and it has it's own set of files.

The 'Use single directory' option will not affect subdomains due to how Plesk has the option setup/coded (short sighted on their part).

I will do retesting later this week on a fresh test server (continued testing of CentOS 3.x and 4.x), but I do know it works for me. The current test server's 'plesksub' subdomain folders are in a mess right now due to some other testing I was doing.
 
Making the setup for a subdomain under Plesk no httpsdocs folder will be created for the subdomain. I'll try to test it with a manual created httpsdocs folder and will inform you later about the result. I would prefering the nested soloution because I've to run a reservation software and I don't want to split the software for each client in 2 different folders (http/https).

The test it with a manual created httpsdocs folder in the subdomain directory failed. Maybe jamesyeeoc is using some different conf. files?;)
 
Back
Top