Apache Question

BreezeDM

Gawd
Joined
Jun 25, 2008
Messages
610
I have a server with several applications running at different ports like 8181,8282,8383, and 8484. I only have one port that is not blocked by a firewall that apache is running on 8080. I would like to configure apache to map localhost:8181 to localhost:8080/webapp1, localhost:8282 to localhost:8080/webapp2, and localhost:8383 to localhost:8080/webapp3. Is this possible with Apache with an apache module and how?
 
that worked! thanks.

I have a follow up now, i now type in https://www.myserver.com/app1 and it works, but am I really communicating with app1 in https or do I setup my app1 on a https port and set up the reverse proxy for that?
 
The request arrive at Apache via https, then Apache makes the request of app1 locally. So the second request isn't https, but it does't matter since the request is internal.

Some applications require SSL though, or it might just be easier to set up; in the past I've wired up reverse proxying to the Atlassian stack (JIRA, etc.) and they had SSL already set-up, which you can accomplish with something like:

SSLProxyEngine on
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /jira https://localhost:8443
ProxyPassReverse /jira https://localhost:8443
 
Back
Top