Skip to content

Instantly share code, notes, and snippets.

@pandurang90 pandurang90/nginx
Last active Aug 29, 2015

What would you like to do?
nginx configure
# HTTPS server
server {
listen 443;
server_name server_url;
index index.html index.htm;
root /home/deploy/cingo/public;
ssl on;
ssl_certificate path/to/;
ssl_certificate_key path/to/;
ssl_client_certificate path/to/ca/demoCA/cacert.pem;
ssl_verify_client optional;
ssl_verify_depth 1;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_prefer_server_ciphers on;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-FORWARDED_PROTO https;
proxy_set_header X-SSL-Client-S-DN $ssl_client_cert;
proxy_set_header X-CLIENT-VERIFY $ssl_client_verify;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://domain1;

This comment has been minimized.

Copy link

paisleyrob commented Oct 14, 2014

line 18: location / {; shouldn't have a semi-colon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.