Welcome! Log In Create A New Profile

Advanced

HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6

February 04, 2013 07:54PM
Hi,

I am using nginx as a ssl offloader in front of HAProxy. The issue I am having is I get a 505 error on one of the calls I make to Nginx/haproxy. If I make that same call to haproxy directory, I get a 200.

Server OS: centos 5.6
Nginx sever version: 1.2.6
Here is my config:

worker_processes 8;
#worker_cpu_affinity 0001 0010 0100 1000;

worker_rlimit_nofile 70000;
events {
worker_connections 6144;
}

http {
include mime.types;
default_type application/octet-stream;
#sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
#keepalive_timeout 65;
#gzip on;

log_format upstream '$remote_addr - - [$time_local] "$request" $status ' 'upstream $upstream_response_time request $request_time ' '[for $host via $upstream_addr]';

upstream haproxy {
# POINT TO HAPROXY:1443
server 127.0.0.1:1443
}

server {
listen 443 ssl;

# CERT
server_name my.testinstant.com;
ssl_certificate_key /etc/nginx/certs/mytestinstant.pem
ssl_certificate /etc/nginx/certs/mytestinstant.crt;


ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
# SINGLE PROCESS CACHE
ssl_session_cache builtin:1000 ;

ssl_ciphers !aNULL:!eNULL:!EXPORT:!DSS:!DES:!kEDH:!ADH:!EXPORT:!LOW:!SSLv2:!RC4-MD5:RC4+RSA:DES-CBC3-SHA:AES+RSA:+HIGH:+MEDIUM;


# POINT TO HAPROXY UPSTREAM
location / {
proxy_pass http://haproxy;
}

# DEFINE NGINX STATUS PAGE
location /nginx_status {
stub_status on;
access_log off;
allow all;
}

}

#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /var/www/nginx-default;
#}

}

Any help with this would be aprreciated.

Thanks
Rob
Subject Author Posted

HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6

rtsai February 04, 2013 07:54PM

Re: HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6

rtsai February 04, 2013 08:53PM

Re: HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6

Maxim Dounin February 05, 2013 05:22AM

Re: HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6

Reinis Rozitis February 05, 2013 08:02AM

Re: HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6

rtsai February 05, 2013 03:51PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready