Go Back   1and1FAQ.com > General > Tutorials
Home Forums Search KB Register FAQ Calendar Search Today's Posts Mark Forums Read

Tutorials How-To's and tutorials on common hosting related tasks and activities.

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-24-2006, 06:14 PM   #1
Highland
Moderator
Master
 
Highland's Avatar
 
Join Date: Feb 2006
Posts: 634
How-To Install SSL on a subdomain on Plesk 8

I don't know where SW Soft gets off suggesting that PSA8 has SSL support for subdomains because it doesn't. I had to hack my way around their shortcomings so here's how I did it.

1. Add your subdomain
You can do this as a normal subdomain or as a standalone domain. I haven't tried this with a normal subdomain but it should work.

2. Add your certificate to Plesk
Use the Plesk control panel to add your certificate. Where the shortcoming comes into play is that Plesk will continue to use the default certificate.

3. Find your certificate
SSH in and head over to /usr/local/psa/var/certificates and do
Code:
#ls -la
Take note of the file name cert-xxxxxx that has today's creation date (there should be only one). Write down that file name.

4.Copy the include file
go to /var/www/vhosts/sub.domain.com/conf and open the httpd.include file
Find where it has
Code:
ServerName   sub.domain.com:443
Copy the entire VirtualHost block for JUST the SSL portion.

5. Make your include file
Head over to /etc/httpd/conf.d and make a file. Call it something like z0-include.conf. We need this file to load after ssl.conf but before zz010_psa_httpd.conf. Paste your entire file in. Now look for this line
Code:
SSLCertificateFile /usr/local/psa/var/certificates/cert-xxxxxx
See how the file name doesn't match up? Edit this line and put in the file name from Step 3.

6. Restart Apache
Code:
#service httpd restart
That should fix the problem and load the proper certificate.
Highland is offline   Reply With Quote
Old 02-11-2007, 05:12 PM   #2
jpkelly
Junior Member
Newbie
 
Join Date: Feb 2007
Posts: 1
thanks

that worked well
you rock!
I am beginning to become a bit disillusioned by SW Soft
jpkelly is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:07 AM.


Powered by vBulletin
Copyright 1and1FAQ.com 2004-2006