Darren Kukulka wrote:
Hassan,

All the static content is served by Tomcat anyway...i.e - there is no
content on the Apache web server.

How is the mod_proxy_ajp used?  The doco on Apache org refers to it in a
developer sense, rather than as a web server directive.

the pertinent info is actually on the mod_proxy page - it's largely config free if you're using it with the Tomcat AJP connector.

 ProxyPass /app ajp://hostname:ajpport/app

You can also use the [p] Proxy directive for mod_rewrite

 RewriteRule  ^/(.+)\.jsp(x?)(.+)*  ajp://hostname:ajpport/$1.jsp$2$3

(...or something, the regex *probably* works)



-----Original Message-----
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: 06 March 2007 15:27
To: Tomcat Users List
Subject: Re: Named based virtual host redirection

On 3/6/07, Darren Kukulka <[EMAIL PROTECTED]> wrote:

This worked but I want to hide the redirect URL,

and eliminate the doubled network traffic, I hope? :-)

Anyway,

<VirtualHost *:80>
    DocumentRoot d:/apache2/htdocs
    ServerName test.abc.co.uk
    ProxyPass / http://fred.abc.co.uk/app1/
    ProxyPassReverse / http://fred.abc.co.uk/app1/
</VirtualHost>

This almost works, but it only appears to show the html content, not
the
JSP.  Does anybody have any suggestions how to make this work?

1. move your static content to Tomcat,
2. use mod_proxy_ajp instead of mod_jk

FWIW!


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to