server { listen 443; #listen [::]:443 default_server ipv6only=on; ## listen for ipv6 server_name ocean.samhuri.net; ssl on; ssl_certificate cert.pem; ssl_certificate_key cert.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://localhost:6706; } } server { listen 5000; #listen [::]:443 default_server ipv6only=on; ## listen for ipv6 server_name ocean.samhuri.net; ssl on; ssl_certificate cert.pem; ssl_certificate_key cert.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; root /home/sjs/samhuri.net/www; index index.html; location / { try_files $uri $uri/ $uri/index.html; } }