Dear all,
I am trying to do ssl support. I generated all the certificate as said (http://wiki.nginx.org/HttpSslModule#Generate_Certificates)
I made a change in my conf as bellow
server {
listen 8080;
listen 443;
ssl on;
ssl_certificate /usr/local/openresty/nginx/ssl/server.crt;
ssl_certificate_key /usr/local/openresty/nginx/ssl/server.key;
keepalive_timeout 70;
........
}
While I ran with non sudo user with ubuntu, I got permission denied. Understand that port below 1024 needs root permission. I changed to 8443 but I was getting this error. Also trying with 8080 port gives me error. Can someone please help me??
Error log:
2014/05/22 23:49:44 [notice] 6095#0: openresty/1.5.12.1
2014/05/22 23:49:44 [notice] 6095#0: built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
2014/05/22 23:49:44 [notice] 6095#0: OS: Linux 3.13.0-24-generic
2014/05/22 23:49:44 [notice] 6095#0: getrlimit(RLIMIT_NOFILE): 1024:4096
2014/05/22 23:49:44 [notice] 6096#0: start worker processes
2014/05/22 23:49:44 [notice] 6096#0: start worker process 6097
2014/05/22 23:50:12 [info] 6097#0: *1 client sent plain HTTP request to HTTPS port while reading client request headers, client: 127.0.0.1, server: , request: "GET /api/sos/v1.0/capabilities HTTP/1.1", host: "localhost:8080"
2014/05/22 23:52:01 [info] 6097#0: *2 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:8443
thanks
Suman