Getting Real IP For nginx & Blocking IP on HAProxy

Getting Real IP For nginx & Blocking IP on HAProxy
· ·

In Tech in Asia, we are using HAProxy as our load balancer and the request is passed on to either of the two web servers running on nginx to process the request. Because the request always comes from the load balancer, under the access logs, the IP will always be the load balancer IP.

Our HAProxy uses the setting option forwardfor which will forward the original client’s IP under the “X-Forwarded-For” header.

CDN Serving Dynamic PHP Pages

CDN Serving Dynamic PHP Pages
· ·

Mark Jaquith‘s presentation on Confident Commits, Delightful Deploys brought up something which I didn’t thought of, “CDN proxies everything including dynamic php pages”.

In his example, he pointed out cdn.wpengine.com and wpengine.com, cdn.page.ly and page.ly, cdn.zippykid.com and zippykid.com are all serving the same content with their CDN counterpart.

WC3 HTML5 Logo

WC3 HTML5 Logo
· ·

I think the logo looks pretty nice. I think I will get the t-shirt!

An HTML5 Logo
It stands strong and true, resilient and universal as the markup you write. It shines as bright and as bold as the forward-thinking, dedicated web developers you are. It’s the standard’s standard, a pennant for progress. And it certainly doesn’t use tables for layout.