Hello,

 

We're fronting several Apache Tomcats with an Apache HTTPD. One Tomcat
server contains the webapps magnoliaAuthor and magnoliaPublic, and it has an
AJP 1.3 connector listening to port 9009. The HTTPD server is listening to
port 80, it loads mod_proxy_ajp and defines several name-based virtual
hosts.

 

Our objective is to expose to the outside world magnoliaPublic in
http://our-magnolia-domain/ and magnoliaAuthor in
http://our-magnolia-domain/magnoliaAuthor/. Other valid solution could be
exposing magnoliaAuthor in http://author.our-magnolia-domain/.

 

The VirtualHost definition with mod_proxy directives is as follows (with
NameVirtualHost *:80 defined in the main httpd.conf file):

 

<VirtualHost *:80>

        ServerName our-magnolia-domain

        ProxyRequests Off

        <Proxy *>

                Order deny,allow

                Allow from all

        </Proxy>

        <Location /magnoliaAuthor>

                ProxyPass               ajp://localhost:9009/magnoliaAuthor

                ProxyPassReverse
http://our-magnolia-domain/magnoliaAuthor

        </Location>

        <Location />

                ProxyPass               ajp://localhost:9009/magnoliaPublic/

                ProxyPassReverse
http://magnolia.hotetec.com/magnoliaPublic

        </Location>

</VirtualHost>

 

It "works" because http://our-magnolia-domain/ redirects the browser to
http://our-magnolia-domain/demo-project.html. But it "doesn't work" because
all the URLs generated by the web pages point to
http://our-magnolia-domain/magnoliaPublic/...

 

We did change the configuration of the server / defaultBaseUrl to
http://magnolia.hotetec.com and the activaction configuration.

 

Can you find obvious errors in this configuration? What do you recommend in
this case? Is it a mod_proxy_ajp configuration issue, or a Magnolia
configuration issue, or maybe something else? Would you simply move
magnoliaPublic to ROOT?

 

Gracias y saludos desde Mallorca,

 

Leo



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to