Home » Forum Home » Hyperic User Forums » Hyperic HQ User Forum

Thread: hiding behind a reversing proxy and ROOT context setup

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Pages: 1 - Last Post: May 13, 2008 3:36 PM by: dpanofsky
gumnaam

Posts: 2
Registered: 12/21/07
hiding behind a reversing proxy and ROOT context setup
Posted: Dec 21, 2007 2:50 AM
 
  Click to reply to this thread Reply

Due to firewall issues, I need to hide hyperic behind an Apache server.
The problem is hyperic is mapped to the ROOT context ("/") in the jboss server.
But the apache server I want to put in front of it, already is serving other applications, and as such I cant proxy the root ("/").

So the solution is to put hyperic at some other context say /hyperic/
but for this to work, the hyperic web application also need to be deployed at /hyperic/ location.

For this I have changed the following stuff

hq.ear/META-INF/application.xml :- Changed context-root for hq.ear from "/" to "/hyperic"

hq.ear/hq.war/WEB-INF/jboss-web.xml :- Changed context-root from "/" to "/hyperic"

And mapped /hyperic URL in apache mod_proxy_ajp to ajp://localhost:9009/hyperic

This works apart from some exceptions.

The availability icon images, point to /images/... instead of /hyperic/images/...

I suspect this is due to some Resourse Filters in hq.war's web.xml.
Any ideas on how to fix this ?

excowboy

Posts: 1,224
Registered: 3/29/07
Re: hiding behind a reversing proxy and ROOT context setup
Posted: Dec 21, 2007 11:56 AM   in response to: gumnaam
 
  Click to reply to this thread Reply

Hi,

your topic was a little bit off-topic in the SIGAR forum so I moved it to the users forum.
I guess its not so easy to hide Hyperic behind a Apache. Did you read this thread ?
http://forums.hyperic.com/jiveforums/thread.jspa?messageID=8186&#8186

You use the location directive in Apache to map the hyperic context under a individual path.

By the way you have top enable the way from the Agents to the Server on your firewall.

Cheers,
Mirko

dpanofsky

Posts: 1
Registered: 5/13/08
Re: hiding behind a reversing proxy and ROOT context setup
Posted: May 13, 2008 3:36 PM   in response to: gumnaam
 
  Click to reply to this thread Reply
Attachment hq-proxy.conf (645 bytes)

I've gotten this to work with the 'context-root' changes you mention and the following apache config:

Alias /hyperic/ "{HQ-ROOT}/hq-engine/server/default/deploy/hq.ear/hq.war/"
Alias /hqu/ "{HQ-ROOT}/hq-engine/server/default/deploy/hq.ear/hq.war/hqu/"
ProxyPassMatch /hyperic/.*\.(css|gif|html|ico|png|js$) !
ProxyPass /hyperic ajp://localhost:9009/hyperic

<Directory "
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Location /h
Order allow,deny
Allow from all
ProxyPassReverse ajp://localhost:9009/hyperic
</Location>

Note, I'm attaching a text file with these config directives in it because they are getting mangled by the message board.

Legend
Guru: 2001 - 9000 pts
Expert: 751 - 2000 pts
Champion: 251 - 750 pts
Pro: 51 - 250 pts
Rookie: 6 - 50 pts
Newbie: 0 - 5 pts
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums




SourceForge
system monitoring | system management