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
----------------------------------------------------------------