1.0.5 vs 1.0.10

stormflake nginx-forum at nginx.us
Thu Mar 29 21:09:05 UTC 2012


I recently copied configuration files that worked correctly in 1.0.5
which no longer work in 1.0.10

I tested using curl:   curl -k -H 'X-Forwarded-For:' -F
data=@1327833493.xml -F username=user -F password=pass

The response I get is: curl: (35) Unknown SSL protocol error in
connection to example.com:443 

Any ideas why this only poses issues in 1.0.10 and not in 1.0.5 ? What
changes are required, or is this a bug?


## nginx.conf
server {
include conf.d/*.conf
passenger module

## conf.d/ssl.conf
server {
  listen 443 default ssl;
  server_name  _;

  ssl                  on; 
  ssl_certificate    path/to/cert;
  ssl_certificate_key   path/to/key;
  ssl_session_timeout  5m;

  ssl_protocols  SSLv2 SSLv3 TLSv1;
  ssl_prefer_server_ciphers   on;

## conf.d/app.rb
server {
        listen 80;
        listen 443;

        log_format  main2  '$remote_addr - $remote_user [$time_local]
"$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$request_body" "$http_x_forwarded_for"
"$http_x_forward_for"' ;
        error_log  /home//app/log/nginx-error.log;
        server_name example.com;
        root /home/app/public;   # <--- be sure to point to 'public'!
        access_log  /home/app/log/nginx-access.log  main2;
        passenger_set_cgi_param HTTP_X_FORWARDED_FOR
        passenger_enabled on;

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,224629,224629#msg-224629

More information about the nginx mailing list