I think you need something like mod_vhost_alias (Apache builtin) or mod_macro (3rd party module). On Thu, Nov 08, 2001 at 08:30:24AM -0600, Mark Langkau wrote:
Can someone help with an Apache rewrite rule for using VirtualHostMonster for mass virtual name based hosting? My corporate intranet needs to have several development and testing areas. What I'd like to do is have virtual hosts set up for each developer to experiment with - on the fly.
The goal is not to change httpd.conf or restart Apache when a new vhost is set up. Apache will not know specific host names in advance. This will allow our developers to quickly put together proof-of-concept sites and send easy to remember URLs to other internal testers without mucking around with Apache configs or restarts.
I have seen examples of using VHM to map domains to folders inside Zope, but I can't seem to understand how to send the correct info from Apache to Zope. I'd like to use wildcards in Apache so that as long as a folder exists in the right place (and with the right name) in Zope, the user will get to the right area.
Example:
Assume our domain is example.com. Internal DNS will be set to send *.test.example.com to 192.168.1.1 so all hosts matching that pattern go to real host "test.example.com." I would like "mark.test.example.com" to map to "/site/mark" and "beta.test.example.com" map to "/site/beta" inside Zope.
Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.