[Web-SIG] Virtual hosting in Aspen (was Re: [ANN] Aspen 0.6 -- turning towards 1.0 w/ daemonization)
chad at zetaweb.com
Sat Dec 9 19:50:37 CET 2006
>> > Has there been any thought given to dealing with virtual hosting?
>> Yes. I hope to implement that as an Aspen application. Basically, my
>> idea is to ...
I've sketched out an implementation using paste.proxy, and posted
it to a new Google Code project called "Aspen Commons:"
> I'm asking because I'm working on an app that uses apache 2.2 to proxy
> 2 perl apps on apache 1.3 as well as a tomcat and iis app (running on
> a windows machine)... Just giving a real life example and wondering
> how/where aspen could fit in....
With Aspen you'd instantiate paste.proxy.TransparentProxy for
each of the four apps, and then wire them up to directory
locations in __/etc/apps.conf. Your filesystem would look like:
__/lib/python2.4/proxy.py <- from paste
__/lib/python2.4/proxyapps.py <- yours
The contents of apps.conf would be:
Does that sound right?
P.S. I had to modify paste.proxy slightly to get it to work.
More information about the Web-SIG