Keith Watanabe * NET 2.0

Success with mod_proxy
By: Keith Watanabe
Published On: 1-21-2008

Today I managed to achieve a new milestone in my technical prowess: I successfully installed mod_proxy on two separate servers.  The first time is always the most painful because you have to get used to the idiosyncrasies of a system and blunder your way through the solution.  But once you manage to get the first one right, the second time usually isn't as meddlesome as the initial time.

The kind of architecture and problems I'm dealing with are purely technical and logistic at work.  Having to deal with things like DNS, working inside a locked down, DMZ environment, even setting up on a production system with no backup.  But I actually like these challenges because you get to hammer through an engineering issue, rather than dealing with unpredictable personalities.

The first time through, I read a good tutorial on setting up a proxy.  However, there were quite a few difficulties that weren't well explained in the tutorial and I ended up simply using the sample version of mod_proxy given on their website.  Because I'm using the Zend Framework at the office and dealing with mod_rewrite as well as having to mess with my /etc/hosts file, things got convoluted quite quickly.  I really had to dig deep into how Zend created sessions while knocking out sessions and starting clean on my environment each time.  A very tedious job, indeed.  But after lunch, I managed to hook up my local box to our testing environment.  While configuring that part of the proxy was painful, I managed to draw up a rough and dirty configuration for the production box.

The production box had a different set of challenges.  Naturally, the first challenge is the age old support question of just even working off a production box.  Luckily, we don't have many users at the moment for the system so restarting apache or re-compiling it to use the latest version weren't huge issues.  The real issue was figuring out how to get the virtual host working while dealing with DMZ.  We don't leave many ports open so testing the connection between the proxy server and the application server was going to be a challenge; meaning, you couldn't simply point your browser to the domain and check it out.  You had to use various tools like telneting to port 80 and issuing a few GET commands.

Since we were just trying to get the configuration tested, we needed to wad through the httpd.conf file, which is like storming a swamp in Vietnam during the war.  The thing is a big mess and we had some trouble just getting the domain setup properly.  Eventually, we persevered hooking up the proxy server to a simple test page on the application server side.

But days like today are incredibly fulfilling.  When you can get something like this working, it's a real triumph.  After this, the next thing to do is configure the application and really optimize the mod_proxy and apache configurations.  That should be interesting though.

AddThis Social Bookmark Button Sphere: Related Content

Trackbacks: (Trackback URL)

No Comments Posted Yet
July [August] September
Sun Mon Tue Wed Thu Fri Sat
27 28 29 30 31 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6