Forum Moderators: phranque

Message Too Old, No Replies

Plesk HTTPS setup and directory problems

We're trying to setup https directory using plesk

         

salonMonster

9:36 pm on Oct 21, 2010 (gmt 0)

10+ Year Member



We are trying to configure ssl for one of our domains hosted on a Red Hat server running Plesk.

Plesk version: 9.5.2
Apache: 2.2.3
Redhat: 2.6.18-194.el5

We created a new SSL certificate entry under: Settings > SSL Certificates
And then generated a CSR

We purchased a RapidSSL certificate using that CSR

We installed the resulting Private key, certificate and CA certificate under the new SSL cert entry we had added to Settings > SSL Certificates

We went to Settings > IP Addresses and selected the IP that the domain is hosted on. The IP is exclusive to one domain.

We set the SSL certificate to be the new cert we had just added and set the default domain to be the exclusive domain on that IP.

Now if we go to [ourdomain.com...] the certificate validates but it sends us to the default Plesk html page. Our regular [ourdomain.com...] still loads fine.

We have tried setting up the certificate under the domain itself instead of under settings > SSL certificates but have found that this breaks our regular http site.

We have tried with our current settings going into ourdomain.com's settings and Web Hosting settings. There we tried turning on SSL support, but if we do that it defaults back to the self-signed certificate.

We have tried setting it to use a single directory for housing SSL and non-SSL content but that setting doesn't save if we don't have SSL support turned on for the domain and if we turn it on the we run into the self-signed cert problem.

So, we have managed to get the https validating the SSL certificate, but we can't seem to get it to load any pages located in either our http or https dirs, it always tries to load from the plesk default dir when we are using https.

How do we set plesk to use either our http or https dir for our https requests rather than defaulting to the plesk default dir.

We started looking into the possibility of editing the httpd.include file for the domain and adding another vhost, something like:

<VirtualHost ourdomain.com:443>
SSLEngine On
SSLCertificateFile c:/Apache Group/Apache2/bin/mydomain.crt
SSLCertificateKeyFile c:/Apache Group/Apache2/bin/mydomain.key
DocumentRoot "path to document root"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
</VirtualHost>

However, we can only find the CA certificate location on the server and are unable to find the key file location.

Any help on how to set plesk to use either our http or https dir for our https requests rather than defaulting to the plesk default dir would be greatly appreciated.

jdMorgan

11:21 pm on Oct 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You cannot use a name-based <VirtualHost> container for this. Your server must be IP-based, with the only difference between SSL and non-SSL requests being the port number (See "Listen" directive). A more common definition of IP-based hosting is that you have an IP address dedicated for use only by your own domain, also called a "unique IP address."

See [httpd.apache.org...] (and links in that document) for more info.

Jim