Welcome! Log In Create A New Profile

Advanced

Problem with multiple ssl vhosts

Posted by ali433 
Problem with multiple ssl vhosts
August 24, 2013 03:56PM
I have a problem configuring nginx with two ssl vhosts.
I got a nginx+apache running on Fedora, main domain using self-signed ssl, and a subdomain, using purchased ssl.
It was running on nginx 1.0.15
Now I've copied the config to Centos server, with nginx 1.4.2, and the problem is that nginx does not use purchased ssl, instead serves self-signed ssl for both main domain as well as subdomain.
I've downgraded nginx to 1.0.15, but that did not solve the problem.
I'm attaching my config files for those vhosts. They are included using general Include /etc/nginx/conf.d/*.conf directive.

Can anyone point me into right direction? Thanks for any clues.



Edited 1 time(s). Last edit at 08/24/2013 03:56PM by ali433.
Attachments:
open | download - domain.conf (1 KB)
open | download - subdomain.conf (1.1 KB)
Re: Problem with multiple ssl vhosts
August 25, 2013 06:46AM
I found a solution to the problem, thanks to the clue contained on this page:
http://nginx.org/en/docs/http/configuring_https_servers.html#name_based_https_servers
Apparently it's not possible to set up multiple https servers on a single IP, due to protocol restrictions.
The solution to this is to either set up each of the vhosts on a separate IP addresses, or use a wildcard SSL certificate.
Hope it will help someone in future.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready