You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by carsten <ku...@googlemail.com> on 2009/02/17 12:54:22 UTC

[users@httpd] How to mount JBoss in Subdir

Hello,
We can mount our application deployed in JBoss with JKmount. It works fine.
But we can reach this app only over an url of this form:
http:/ourserver/appcontext

This is done via an mount of
JKMount /appcontext worker

Now we ha´ve to reach our app over an url of this form
http:/ourserver/extern/appcontext

notice the extra /extern/ part in the URL. We need this since this is the target
of a redirection from an other server.

How can i achieve this? Any research in this direction failed.
Alias /extern /fong does not work

rewriting does not work (at least we have used the wrióng ruLe)
If one can point us in the right direction, please. An example will be nice, too
Ciao,
Carsten


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: How to mount JBoss in Subdir

Posted by carsten <ku...@googlemail.com>.
Thanks for your Info. 
> ProxyPass /extern/appcontext http://tomcatserver:8080/appcontext
> ProxyPassReverse /extern/appcontext http://tomcatserver:8080/appcontext

We have managed to get the url to be the same, due to your post. Proxys are
banned from our httpservers;-)
Here is the solution
https://extern/appcontext is redirected to http://intern:8080/appcontext
So we set the context-root in application.xml to /appcontext/app
and we are able to do
JKmount /appcontext/app worker

Carsten





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to mount JBoss in Subdir

Posted by Krist van Besien <kr...@gmail.com>.
On Tue, Feb 17, 2009 at 12:54 PM, carsten <ku...@googlemail.com> wrote:
> rewriting does not work (at least we have used the wrióng ruLe)
> If one can point us in the right direction, please. An example will be nice, too

One solution would be not to use mod_jk and in stead just proxy to the
tomcat's http port. That way the full power of RewriteRules are
available, but even a simple proxy will work:

ProxyPass /extern/appcontext http://tomcatserver:8080/appcontext
ProxyPassReverse /extern/appcontext http://tomcatserver:8080/appcontext

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org