This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Configure Proxy in apache for JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configure Proxy in apache for JBoss" Watch "Configure Proxy in apache for JBoss" New topic
Author

Configure Proxy in apache for JBoss

Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Hi,
I have an application that is currently running on weblogic. There is an apache HTTP server proxy for it so that requests to https://10.12.120.12/abc/def gets routed to http://10.12.120.12:8090/xyz/ggg

I need to add a jboss proxy to this file so that requests to https://10.12.120.12/aaa/bbb(different url) gets routed to the same http://10.12.120.12:8090/xyz/ggg.

I cannot shutdown my weblogic instance.
Since httpd.conf already has a name virtual host with 10.12.120.12 , I am confused on how to create this proxy.
It looks like this:
QUOTE:

#
# Weblogic Proxy
#
LoadModule weblogic_module libexec/mod_wl.so
#
# AddModule mod_weblogic.c
NameVirtualHost 10.13.120.12

<VirtualHost 10.13.120.12>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
ServerName jackson
<Location /abc/def>
SetHandler weblogic-handler
WebLogicHost myserver
WebLogicPort 8090
ConnectTimeoutSecs 600
# disable TRACE and TRACK in the www.example.com virtual host
#RewriteEngine On
#RewriteCond %{REQUEST_METHOD} ^TRACE
#RewriteRule .* - [F]
#RewriteCond %{REQUEST_METHOD} ^TRACK
#RewriteRule .* - [F]
</Location>
</VirtualHost>

UNQUOTE


I have already configured my jboss server to run on port 8190.
I have not yet made any changes to \server\myserver\deploy\jboss-web.deployer\server.xml to allow for any apache proxy changes, since I am not sure how!

I guess I would need to create a new Connector port listing for this new port.

Could anyone please help with some steps. I checked some of the other posts, but they are dealing mainly with just direct proxying through jboss, but I would have to proxy through apache, and with the Secure connection too.

Thank you
Karthik
Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Found some details onm the following site:
http://help.shadocms.com/blog/2009/how-to-setup-apache-with-jboss-on-a-shado-site.cfm


However, am unable to set up multiple ProxyPAss so far.

Thanks
Karthik
 
Consider Paul's rocket mass heater.
 
subject: Configure Proxy in apache for JBoss