Last active
August 29, 2015 13:57
-
-
Save andypotanin/9897760 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
| worker_processes 1; | |
| daemon off; | |
| events { | |
| worker_connections 1024; | |
| } | |
| # curl localhost:8000/api/ariya.github.io/js/random/index.html | |
| # curl localhost:8000/api/stackoverflow.com | |
| http { | |
| server { | |
| listen 8000; | |
| server_name localhost; | |
| location ~* ^/api/(.*) { | |
| resolver 8.8.8.8; | |
| proxy_pass http://$1$is_args$args; | |
| } | |
| #pagespeed on; | |
| #pagespeed RewriteLevel PassThrough; | |
| #pagespeed EnableFilters remove_comments,rewrite_javascript; | |
| #pagespeed FileCachePath /home/vagrant/cache; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment