Certificate issue on two IP-addresses with same port
martin.schoettler at email.de
Wed Feb 20 13:29:09 MSK 2008
I need to run two web applications (Ruby on Rails)
on one server over SSL. Both applications shall run on port 443 (other
wise we get firewall problems).
What I did:
- I got two IP-addresses (184.108.40.206, 220.127.116.11) for the server.
- I connected different domains to that addresses (gedis-intern.de ->
18.104.22.168, gedis-second.de -> 22.214.171.124
- I configured two vhosts for nginx to listen on
- listen 443; server_name secure.gedis-intern.de;
- listen 443; server_name secure.ticket-db.gedis-second.de;
- I provided certificates for the two vhosts (ssl_certificate,
When I connect to the second application
(https://secure.ticket-db.gedis-second.de), then the *wrong certificate*
is presented (that of the first one) to the client. Therefore the
browser displays a warning, which confuses the user. (*That is the problem*)
If I set port 444 for the second application, than everything works
fine. But - as I said - port 444 is sometimes blocked by firewalls.
Any help is appreciated!
D-82431 Kochel am See
fon +49-(0) 88 51 - 92 31 54
fax +49-(0) 88 51 - 92 31 56
gsm +49-(0) 163 - 44 33 621
private +49-(0) 8851 - 7581
More information about the nginx