Mobile app version of vmapp.org
Login or Join
Pope3001725

: Apache Server - Wrong Certificate At work we are moving a website from "outside" to "inside". Standard LAMP website (Apache, MySQL, PHP). The issue I'm having is that it's serving up the wrong

@Pope3001725

Posted in: #Apache #SecurityCertificate

At work we are moving a website from "outside" to "inside". Standard LAMP website (Apache, MySQL, PHP).

The issue I'm having is that it's serving up the wrong certificate.

https:/intranet - on my computer, and some other computers, it's serving up the SSL for intranet like it should...

On other computers it's serving up the certificate for https:/intranettest instead. HTTPS:/intranet/ put in browser, yet Apache is serving the wrong certificate.

I'm at a loss for "how" it's serving the wrong certificate for some websites, and not others (more wrong than right)... If it hits the server, the DNS switch has occured like it should, so they are arriving at the "New" server instead of the "old".

I hope I'm asking this right.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pope3001725

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

After much gnashing of teeth... the issue was that Apache SSL Virtual Hosts apparently don't like *:443, when dealing with multiple hosts.

We have an internal IP for the server... and an external IP for the server. To fix the issue, I created two virtual hosts - explicitly declaring the IP-Address.

Changed From...

<VirtualHost *:443>...</VirtualHost>


To

<VirtualHost 192.168.1.1:443>...</VirtualHost>
<VirtualHost 200.58.1.1:443>...</VirtualHost>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme