Super User is a question and answer site for computer enthusiasts and power users. 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

My problem is, that I have server applications using http but running on port 9001 for example. As I have webapplications running on port 80 and port 443 I can't simply change the configuration of the server application to use those ports, so I want for example http://localhost/application on port 80 internally connect to http://localhost:9001 as I don't want to forward port 9001 in my router.

When searching for a solution I found something about using a reverse proxy but didn't really understand it and don't know if this is the right solution.

Additionally it would be nice to map http://localhost:9001 to https://localhost with automatic SSL-encryption with my own certificate, because the server application doesn't support SSL on it's own.

I'm running Ubuntu server 12.04 with apache2.

Thanks for your answers

share|improve this question
up vote 0 down vote accepted

You are looking for mod_proxy. Please read the good documentation on the apache site to configure it.

This allows you to use your apache as reverse proxy in front of another web application server like tomcat, another apache or some kind of other applications.

This allows you also to terminate a ssl connection on the apache server and speak plain http to the backend.

share|improve this answer
How do I use and configure it? – FSMaxB Mar 13 '13 at 16:57
@FSMaxB see the link above – user86064 Mar 13 '13 at 17:02
Thanks, I'll try to get it working and if not I'll ask again. – FSMaxB Mar 13 '13 at 17:04
It works, thanks. – FSMaxB Mar 13 '13 at 17:17
@FSImmer gerne. – user86064 Mar 13 '13 at 17:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .