Skip to content

Instantly share code, notes, and snippets.

@denisshevchenko
Last active January 21, 2016 21:24
Show Gist options
  • Save denisshevchenko/7eb8427fbce0b5682166 to your computer and use it in GitHub Desktop.
Save denisshevchenko/7eb8427fbce0b5682166 to your computer and use it in GitHub Desktop.
events {
worker_connections 1024;
}
http {
error_log /tmp/sanity-nginx-error.log;
access_log /tmp/sanity-nginx-access.log;
upstream secureZalora {
server 180.150.149.146:443;
}
server {
listen 8080;
server_name localhost;
location ^~ / {
proxy_set_header Host "www.zalora.sg";
proxy_pass http://180.150.149.146:80;
}
}
server {
listen 8081;
server_name localhost;
location ^~ / {
proxy_set_header Host "www.zalora.sg";
proxy_pass https://secureZalora;
proxy_ssl_name www.zalora.sg;
proxy_ssl_server_name on;
}
}
include servers/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment