Created
August 6, 2013 09:08
-
-
Save colthreepv/6162947 to your computer and use it in GitHub Desktop.
nginx site for forwarding github
This file contains 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
server { | |
listen 80; | |
server_name *.github; | |
location / { | |
proxy_set_header Host api.github.com; | |
proxy_pass https://api.github.com/; | |
} | |
access_log /var/log/nginx/github_access.log combined; | |
error_log /var/log/nginx/github_error.log error; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment