Created
August 20, 2014 12:57
-
-
Save uroshekic/cd789fd4638de27e8b84 to your computer and use it in GitHub Desktop.
Nginx proxy
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
| server { | |
| listen 8080; | |
| server_name proxy; | |
| location / { | |
| resolver 8.8.8.8; | |
| proxy_set_header Accept-Encoding ""; | |
| proxy_pass http://xkcd.com$uri$is_args$args; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ef.gy/using-nginx-as-a-proxy-server