http://
works well, however, if I am trying to access https://
host, I get an error saying "The connection to the server was reset while the page was loading." (Firefox 8). Furthermore, simply adding listen 443 ssl default;
messes up the other SSL vir
server
{
listen 443 ssl default;
server_name _;
server_name_in_redirect off;
#rewrite ^ http://$server_name$request_uri? permanent;
rewrite ^ http://$host$request_uri? permanent;
}
server
{
listen 80 default;
server_name _;
server_name_in_redirect off;
root "/var/www/virtualhosts/dev.anuary.com/default";
include /etc/nginx/anuary_location_php;
}
You're going to need, at the very least,
ssl_certificate
andssl_certificate_key
for the server to be able to complete connections on that port.This is why you're seeing the connection be reset by nginx - it's got no key to do its SSL negotiation with.