[LRUG] [OT:Apache] Mapping multiple domains to different controllers?

Murray Steele murray.steele at gmail.com
Tue Apr 14 02:43:55 PDT 2009


2009/4/14 Matthew Rudy Jacobs <matthewrudyjacobs at gmail.com>

>
> 1. A request to "http://SomethingElse.com" should return the same
> content as one to "http://MyDomain.com/other_domain"
> 2. It should achieve this without redirecting
> 3. It should serve ~/myapp/public/other_domain/index.htm to requests
> for "http://SomethingElse.com/" if it is present
>
> I have a gist - http://gist.github.com/94828
> with a couple of things I've tried...
>
> but I'm stumped.
>
> Doing a normal redirect is fine,
> but I don't want to issue a 302, I just want apache to deal with the
> redirect internally (and [P] seems to break)
> and I can't seem to make ModProxy work for me.
>

Question: why?  Canonical urls and all that.  What's so bad about having a
redirect from blah.com to pleh.com/blah?  And if that's so bad, what about a
redirect is so bad, why should blah.com be the same as pleh.com/blah and not
just make pleh.com/blah redirect to blah.com?

It'd make it super simple.

That said, I'm sure this is do-able.  Just wondering the rationale behind
it.

Muz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20090414/d124204c/attachment-0003.html>


More information about the Chat mailing list