Last active
January 21, 2016 21:24
-
-
Save denisshevchenko/7eb8427fbce0b5682166 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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