Web development

Keeping real user IP in Java web apps behind Nginx proxy

Submitted by lennart on Wed, 07/06/2011 - 15:51

When there is an Nginx proxy in front of your tomcat (or other app server), request.getRemoteAddr() or request.getRemoteHost() will return the IP of the Nginx server. And this is obviously not what we want.

To get this right, an extra HTTP Header will have to be added in Nginx, and our web app will have to be told to use it.

Drupal 7 Tutorial

Submitted by lennart on Sun, 07/03/2011 - 17:49

A set of Drupal 7 tutorials - Beginner to Expert, by "anilsagar".

Opera Mobile Emulator for desktop

Submitted by lennart on Sun, 07/03/2011 - 17:48

Opera released a new version of their Opera Mobile emulator. It includes presets for a broad variety of mobile devices like: HTC Desire, Samsung Galaxy S, Motorola Xoom, Nokia N900 Maemo, ...

Very useful for developing mobile websites! Oh and, just like Opera Mobile on your phone itself, it can be linked to Opera Dragonfly on your desktop!

Life Below 600

Submitted by lennart on Sun, 07/03/2011 - 17:46

Interesting article about the "fold", and the fact that people have learned to scroll.

"Above the fold" - a graphic design concept that refers to the location of an important news story or a visually appealing photograph on the upper half of the front page of a newspaper. Ever stop to think about the concept of The Fold?

Subscribe to RSS - Web development