(Markus Strickler) wrote:
Hi Phil-
(phil campaigne) wrote:
I've been working on the same problem. The wikipage referenced by
Markus works if you only have one domain mapped to one website in
magnolia. I'm faced with the problem of multiple domains mapping to
multiple website in magnolia. I have been considering two approached
1) use rewrite in apache to map a specific domain name to the
specific home page of the matrching website in magnolia, 2) use a
rewrite servlet application in my tomcat to do the mapping.
Does anyone have any thoughts on either approach?
Usually I use Apache for all kinds of redirection / rewriting, as I'm
running a reverse Proxy setup instead of mod_jk and have some PHP and
CGI scripts running on the same host.
But that's probably a matter of personal preference and detailed
requirements.
If you want to go the java road you might want to look at Url Rewrite
Filter [1]. I haven't used it so far, but it's supposed to have
similar capabilities as Apache's mod_rewrite.
Unfortunately Magnolia doesn't have true multi site support like ZOPE
or OpenCMS offer it. (At least I haven't found it).
-markus
[1] http://tuckey.org/urlrewrite/
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
Hi Markus,
Yes, I've been playing with Urlrewrite from tuckey.org and it works fine
for one domain mapping. I haven't tried it for multiples. I think I
will use URlrewrite because I can control it, whereas the apache rewrite
is inaccessible to me. I have to make a change request to my hosting
service.
thanks,
Phil
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------