Simplified Nginx Proxy for Google URLs in WordPress

In Nginx proxy for Google URLs in WordPress, I wrote lots of lines configuring proxies and subs_filter rules.
Here is the newer simplified one:

Updated(2014-09-19):

Simplified Nginx Proxy for Google URLs in WordPress by @sskaje: https://sskaje.me/2014/01/simplified-nginx-proxy-google-urls-wordpress/

mallory proxy update

Here is my fork of mallory: https://bitbucket.org/sskaje/mallory, which, as it’s said, is a powerful TCP/UDP proxy, but way too old.
Here you can find how to install it, but the official repo one.

I created a pull request here, but seems IntrepidusGroup guys are not working on this anymore.

And the TCP/UDP raw protocol debug still not work for me. Hope I can figure it out one day.

Btw, quotes of my commit logs:

Continue reading “mallory proxy update” »

mallory proxy update by @sskaje: https://sskaje.me/2014/01/mallory-proxy-update/

Incoming search terms:

Brief Intro to Mallory

MiTM(Man in The Middle) is a good way analysing protocols, especially when there’s an SSL. http://en.wikipedia.org/wiki/Man-in-the-middle_attack
To analyse HTTP/HTTPS protocol, we have Charles Proxy. Posts on my blog can be found https://sskaje.me/tag/charles-proxy/ (there’s another MiTM proxy, ‘mitmproxy’, https://github.com/mitmproxy/mitmproxy and http://mitmproxy.org/, will try later.)
For others, mallory is recommended.

Mallory

Mallory is an extensible TCP/UDP man in the middle proxy that is designed to be run as a gateway. Unlike other tools of its kind, Mallory supports modifying non-standard protocols on the fly.

We have mallory from https://bitbucket.org/IntrepidusGroup/mallory and https://intrepidusgroup.com/insight/mallory/.

Continue reading “Brief Intro to Mallory” »

Brief Intro to Mallory by @sskaje: https://sskaje.me/2014/01/brief-intro-to-mallory/

Incoming search terms:

Nginx proxy for Google URLs in WordPress

I wrote a script how to make fonts.googleapis.com not bring down the load speed of WordPress for visitors from China.
Here is the link: Google Font Api Proxy for WordPress
To use this proxy, I have to edit themes’ files even the script-loader.php by WordPress, that’s a disaster for upgrading.

Another problem is, I have SSL enabled on my blog. Every time I visit my blog, Chrome notices me that

The page at ‘https://sskaje.me/’ was loaded over HTTPS, but displayed insecure content from ‘/p/themes.googleusercontent.com/static/fonts/opensans/v6/xxxxxxxx.woff’: this content should also be loaded over HTTPS.

The SSL green lock icon in the address bar is always be ‘warned’.

Continue reading “Nginx proxy for Google URLs in WordPress” »

Nginx proxy for Google URLs in WordPress by @sskaje: https://sskaje.me/2014/01/nginx-proxy-google-urls-wordpress/