Can I have the same https website (for example https://www.example.com/) hosted on two different IPs?
Asked
Active
Viewed 59 times
0
-
Yes. What is your actual question? – Tobi Nary May 16 '16 at 12:02
-
Yes you can, but you need a reverse proxy/load balancer. – M'vy May 16 '16 at 12:14
-
2Also, welcome to [security.se]. Your question is not about a security problem, but rather server configuration, so I voted to move it to [SF]. – M'vy May 16 '16 at 12:16
-
Is there any OCSP restriction for that, if I am not using reverse proxy and just set a two A records in my DNS and pointed www.example.com on two differenr IP's? – azatuni May 16 '16 at 12:20
-
Yes you can, and you DON'T need a reverse proxy/load balancer. – symcbean May 16 '16 at 15:47
2 Answers
3
All what matters is that the certificate matches the hostname from the URL and that the certificate is valid and trusted. It does not matter if you have multiple IP address for the same hostname and use the same certificate on all of these. Such setup is actually very common for larger sites.

Steffen Ullrich
- 13,227
- 27
- 39
0
Yes. Do not forget to use rel canonical to avoid content duplication in search engines.

Delia
- 1
-
-
Indeed. The most common mistake appears when one uses IP1 on https/site1.com and IP2 on https//www.site1.com – Delia May 16 '16 at 15:51
-
But the question was about instances using the vhost name. rel canonical is irrelevant. – symcbean May 16 '16 at 15:53