Paul

Would you mind posting your finale apache and tomcat xml settings?

It would surely make life easier to all of us that spend days to try to
work this out.

Thanks
Frank

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 26. Juli 2007 23:56
To: [email protected]
Subject: Re: [magnolia-user] Multiple websites in one instance

A slight refinement to my reverse proxy setup.

In Magnolia, my sites are each hung off a separate node.  In my previous
proxy, I rewrote a request for "/" to read "/ai/index.html" to start at
the
right level.  I was intending to do this redirection (from "/ai/" to
"/ai/index.html") in Magnolia, but for some reason* I couldn't seem to
make
it happen.

So I added to my Apache Virtual Server definitions the following two
lines,
placed after the server names and before the proxy definitions:

    RewriteEngine on
    RewriteRule ^/$ /index.html [P]

Notes:

I also had to enable mod_rewrite, of course.

The rule simply changes a URL (before redirection) of "/" to
"/index.html";
it then invokes mod_proxy (by the [P]) to complete the rewriting uniform
with all other URLs.  URLs which are not trapped by the rewrite rule
pass
straight to the proxy rules in any case.

I now have all my sites working through this mechanism, and will make it
live tonight or tomorrow morning after a little more testing.

Paul

* I tried VirtualURLMapping with no success; and couldn't understand the
Wiki articles about redirection templates - sadly, they assume a higher
level of familiarity with templating than I yet have.

-- 
Paul Hodges



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to