Solved

Apache fronting IIS and Tomcat

Posted on 2004-08-16
1
966 Views
Last Modified: 2008-01-09
Hi,

I dont know if I can do this but you can tell me: I have a machine with IIS listening on 900 and tomcat listening on 8080. I want the applications they are running to be accessible via the one port/website. I am trying to configure Apache to listen on port 80 and to forward the request to the correct webserver based on the url. I have being trying to use the RemoteProxy directive and VirualHost stuff to no avail i.e. something like:

RemoteProxy http://ip.ip.ip.ip:80/app1 http://sameip:900/app1
RemoteProxy http://ip.ip.ip.ip:80/app2 http://sameip:8080/app2

Any help would be greatly appreciated

gareth
0
Comment
Question by:calahans
1 Comment
 
LVL 15

Accepted Solution

by:
samri earned 200 total points
ID: 11811942
How about using ReverseProxy?

Checkout apache proxy module docs at http://httpd.apache.org/docs-2.0/mod/mod_proxy.html
 * http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#forwardreverse

--- example taken from apache website
ProxyRequests Off

<Proxy *>

Order deny,allow
Allow from all

</Proxy>

ProxyPass             /app1    http://ip.ip.ip.ip:900/app1
ProxyPassReverse  /app1    http://ip.ip.ip.ip:900/app1

ProxyPass             /app2    http://ip.ip.ip.ip:8080/app2
ProxyPassReverse  /app2    http://ip.ip.ip.ip:8080/app3
----------

give it a shot.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question