curl "Connection refused" caused by SSL config
nginx-forum at nginx.us
Fri Mar 6 09:51:05 UTC 2015
"Connection refused", generally means that your server (sometimes this can
be a firewall too - although firewalls tend to more often just silently drop
packets) is sending a RST packet to an attempt to connect. Check with
netstat and see if Nginx is bound to your public IP on :443
As for your question on SSL config -- it is valid in both the http and
server context, ref.
Your configuration seems to be that you have one certificate, and two
virtual hosts, that respond to different host-headers.
for the first one, you probably mean:
server_name foo.com bar.foo.com;
or do you mean to have it as a catch-all for "*.foo.com"
Are you only trying to enable SSL3 for "foobar.foo.com" and have only
"TLSv1.1 TLSv1.2" for the other one?
Lastly, maybe give some more stuff to work with here, like your actual URLs,
and your full configuration.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,257064,257088#msg-257088
More information about the nginx