Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 web forms, one coded using Java Servlets on glassfish (port 8080) and another using PHP on apache(port 80). But my office ITdept is refusing to open port 8080 to outside traffic. How do I set up Apache such that requests coming in for the form with the servlets are directed to port 8080? Thanks TX PS: Im using wamp

share|improve this question

closed as off-topic by Tom O'Connor Aug 14 '13 at 20:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

I think your best bet is to use mod_proxy on apache...

Something like the following on your virtual host:

ProxyPass /somepath http://localhost:8080/SomeApp/somepath
ProxyPassReverse /somepath http://localhost:8080/SomeApp/somepath

This would make it so that when you access /somepath on your apache you're actually accessing the glassfish server /SomeApp/somepath.

You might need to add some more directives if you want cookies to be rewritten, etc... but the basic functionality is there...

More info on

Not exactly sure how to set things up with wamp tho but I suppose there's an apache config file somewhere...

Hope this helps.

share|improve this answer

Surely the better option would be to have IT NAT traffic for a specific IP from port 80 to 8080 onto whichever firewall is above your server?

Also, why will they not open this port?

share|improve this answer
They go on about security issues and stuff, those guys are really dumb, I dont want to deal with them. Also, if I dont find a good enough method of directing the traffic myself, Ill have to rewrite everything in the servlet into PHP.. – Sabertooth May 23 '12 at 17:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.