logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Multiple SSL sites, same Apache server, can only access one.
Author
xpac



Joined: 15 Jan 2017
Posts: 2

PostPosted: Mon 16 Jan '17 6:25    Post subject: Multiple SSL sites, same Apache server, can only access one. Reply with quote

So we have an apache server hosting 2 sites, both need to be secured via SSL. They share the same server, and same external IP address. We're using a certificate from GoDaddy with 5 domains total, 1 primary and 4 SANs.

Site1 has been up and running for a while with SSL, recently some outside web developer finished site 2. I created a new cert with both domains, and installed.

HTTP resolves fine for both sites, and HTTPS resolves fine for site1. However, for site2 when you type "https://site2" it redirects to site1.

I'm thinking the web developer configured something for site1/SSL but did not for site2, so whenever you type in the https for site2 it automatically uses whatever "rule" is in place. But I'm unsure of where to look. Just wondering if somebody can point me in the right direction. Either that, or maybe I should use a separate external IP address for site2? Or is it just specifying a different port somewhere in a config file?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Thu 26 Jan '17 14:08    Post subject: Reply with quote

You can use SNI. means <VirtualHost *:443> without an ip and identified by ServerName

see also https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI
Back to top
xpac



Joined: 15 Jan 2017
Posts: 2

PostPosted: Fri 27 Jan '17 3:21    Post subject: Reply with quote

Ah thanks, yep forgot I had posted this here but I came across that via Google and was able to solve the issue!
Back to top


Reply to topic   Topic: Multiple SSL sites, same Apache server, can only access one. View previous topic :: View next topic
Post new topic   Forum Index -> Apache