Hi, I am trying to setup nginx for both https and TCP application but it is not working, could you please check here what is wrong in my configuration.
server {
listen 443;
server_name nginx.external.pcpc.com;
ssl_password_file /etc/nginx/ssl/nginx.pass;
ssl_certificate /etc/nginx/ssl/external.pcpc.cert.txt;
ssl_certificate_key /etc/nginx/ssl/external.pcpc.pkey.txt;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/jenkins.access.log;
location /service {
proxy_pass http://service.s3-website-us-east-1.amazonaws.com/service;
}
location / {
proxy_pass https://nginx-36775c5588ec6e89.elb.us-east-1.amazonaws.com;
proxy_ssl_session_reuse off;
proxy_ssl_server_name on;
}
}
server {
listen 443;
server_name nginx.external.pcpc.com;
ssl_password_file /etc/nginx/ssl/nginx.pass;
ssl_certificate /etc/nginx/ssl/external.pcpc.cert.txt;
ssl_certificate_key /etc/nginx/ssl/external.pcpc.pkey.txt;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/jenkins.access.log;
location /service {
proxy_pass http://service.s3-website-us-east-1.amazonaws.com/service;
}
location / {
proxy_pass https://nginx-36775c5588ec6e89.elb.us-east-1.amazonaws.com;
proxy_ssl_session_reuse off;
proxy_ssl_server_name on;
}
}