Skip to content

Instantly share code, notes, and snippets.

@mindflayer
Created September 11, 2013 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindflayer/6524007 to your computer and use it in GitHub Desktop.
Save mindflayer/6524007 to your computer and use it in GitHub Desktop.
PHP middleware removal using nginx proxy, JSONP available if GET param callback is available
location ^~ /v02/contenz/ {
if ( $arg_callback ) {
add_header Content-Type application/javascript;
echo_before_body '$arg_callback(';
echo_after_body ');';
}
proxy_pass http://192.168.124.37:8001/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment