Home > Archive >  2008 >  November >  19


Checklist for reverse proxies in Apache/Windows

Wednesday, November 19, 2008 by Dave Winer.

Checklist of things to do with a fresh Apache install to get reverse proxies working (on Windows). Permalink to this paragraph

1. Start with apache_2.2.9-win32-x86.nossl.msi, go through normal install. When it asks for domains I entered: twitterland.org, apache.twitterland.org (one of many unused domains I've bought over the years) and my Gmail address. Permalink to this paragraph

2. Rebooted the system. Permalink to this paragraph

3. Editing httpd.conf. In the default install the full path is:
C:\Program Files\Apache Software Foundation\Apache2.2conf\http.conf Permalink to this paragraph

4. Uncomment two lines, to activate the proxy module, per advicePermalink to this paragraph

4a. Configure Apache to only listen on port 80 of 67.18.151.42. Permalink to this paragraph

5. Restarted server. It works. http://apache.twitterland.org/  Permalink to this paragraph

6. Added code to map /npr on this server to the OPML Editor (which is running on port 5337). Well, it didn't kill the server, but it's also not mapping to the right place. What you should see is exactly what you see at: http://npr2.twitterland.org:5337/  Permalink to this paragraph

After a bit of fussing on the OPML Editor side of things, it worked. Thank you everyone for the help and encouragement. Permalink to this paragraph

Here's the code I added in step 6. Permalink to this paragraph

ProxyPreserveHost On
<Location /npr/>
   ProxyPass http://npr2.twitterland.org:5337/
   ProxyPassReverse http://npr2.twitterland.org:5337/
</Location> Permalink to this paragraph

I have a bit more work to do, later, to get virtual domains to pass through the proxy, but I've heard that's pretty easy (heh, I'll believe it when I see it). Permalink to this paragraph

Later... Permalink to this paragraph

It turned out to be very straightforward and easy. I set it up so that http://test5.twitterland.org/ points to the Apache server, and using VirtualHost I sent it over to the OPML Editor through a proxy. Worked the first time. ;-> Permalink to this paragraph

<VirtualHost 67.18.151.42:80>
   ServerName test5.twitterland.org
   ProxyPass / http://test5.twitterland.org:5337/
   ProxyPassReverse / http://test5.twitterland.org:5337/
</VirtualHost> Permalink to this paragraph




     

Recent stories:



A picture named dave.jpgDave Winer, 53, pioneered the development of weblogs, syndication (RSS), podcasting, outlining, and web content management software; former contributing editor at Wired Magazine, research fellow at Harvard Law School, entrepreneur, and investor in web media companies. A native New Yorker, he received a Master's in Computer Science from the University of Wisconsin, a Bachelor's in Mathematics from Tulane University and currently lives in Berkeley, California.

"The protoblogger." - NY Times.

"The father of modern-day content distribution." - PC World.

One of BusinessWeek's 25 Most Influential People on the Web.

"Helped popularize blogging, podcasting and RSS." - Time.

"The father of blogging and RSS." - BBC.

"RSS was born in 1997 out of the confluence of Dave Winer's 'Really Simple Syndication' technology, used to push out blog updates, and Netscape's 'Rich Site Summary', which allowed users to create custom Netscape home pages with regularly updated data flows." - Tim O'Reilly.

Dave Winer Mailto icon


My most recent trivia on Twitter.



© Copyright 1994-2008 Dave Winer Mailto icon.

Last update: 12/16/2008; 5:22:12 PM Pacific. "It's even worse than it appears."

Click here to view blogs commenting on  RSS 2.0 feed.