httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: virtual domains using mod_rewrite
Date Wed, 19 Nov 1997 16:02:04 GMT
On Tue, 18 Nov 1997, Brian Behlendorf wrote:

> At 04:48 PM 11/18/97 -0700, Marc Slemko wrote:
> >Has anyone done any work on trying to make something like the below work
> >completely?  This would be very cool to be able to do fully.  Then you can
> >implement a hostname for each user without using virtualhosts.  Hey, you
> >can even use only one IP.  marcs.wild.znep.com == alive.znep.com/~marcs,
> >ann.wild.znep.com == alive.znep.com/~ann, etc.  Only one A record needed
> >for all of them.  No mess, no changes required when you add users.
> 
> You could even do this (and what the original poster was trying to do)
> without mod_rewrite:  if all you care about is handling the 
> 
>   http://marcs.wild.znep.com/ -> alive.znep.com/~marcs/
> 
> case and not the
> 
>   http://marcs.wild.znep.com/(anything) -> alive.znep.com/~marcs/(anything)
> 
> case, then just make your root-level index.cgi a script which returns an
> HTTP redirect based on the contents of the Host: header, and providing a
> reasonable index in the absence of that header.  If it's not an algorithmic
> mapping, do a lookup in a DBM file or something.
> 
> That's what I recommended just now to the poster of the message which
> started this thread when I found out all he wanted to do was map
> 
>   http://www.foo.com/ -> http://www.hypermart.com/foo/

But the problem is that he (and I in my "cool things") don't want a HTTP
redirect.  If you are going to just redirect things, there is no point to
using anything other than the URL you will be redirected to...


Mime
View raw message