Created
September 11, 2013 14:00
-
-
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
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
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