Skip to content

Instantly share code, notes, and snippets.

@andypotanin
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save andypotanin/9897760 to your computer and use it in GitHub Desktop.

Select an option

Save andypotanin/9897760 to your computer and use it in GitHub Desktop.
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