Primary script unknown error - can't figure out how to fix

Patrick Lists nginx-list at
Tue Jan 8 20:39:49 UTC 2013

On 01/08/2013 08:44 PM, Steve Holdoway wrote:
> At first glance I can't see anything listening on port 443.

Thanks Steve. It was a copy & paste error. Here's what it really should be:

server {
     listen IP:80; # IPv4
     listen IP:80; # IPv6


     # always redirect to the ssl version
     rewrite      ^ https://$server_name$request_uri? permanent;

server {
     listen IP:443 ssl; # IPv4
     listen IP:443 ssl ;

     ## SSL config
     ssl_protocols  SSLv3 TLSv1 TLSv1.1 TLSv1.2;
     ssl_ciphers    HIGH:!aNULL:!MD5:!RC4;
     ssl_prefer_server_ciphers  on;


The SSL part works fine.


More information about the nginx mailing list