jait-purohit / tamacat

Automatically exported from code.google.com/p/tamacat
0 stars 0 forks source link

ReverseProxy to a separate machine does not seem to work. #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. configur tamacat url-config.xml as follows:
<?xml version="1.0" encoding="UTF-8"?>
<service-config>
    <!-- Virtual host -->
    <service host="http://someclient.com:8181">
        <url path="/" type="reverse" handler="ReverseHandler">
            <reverse>http://localhost:80/</reverse>
        </url>
    </service>
    <service host="http://test.someclient.com:8181">
        <url path="/" type="reverse" handler="ReverseHandler">
            <reverse>http://207.110.90.59:8080/dash.jsp</reverse>
        </url>
    </service>
</service-config>

2. verify ports 80, 8181 are open and allows traffic
3. run tamacat 
4. open web browser and naviage to http://test.someclient.com:8181/
5. expecting a reverse proxy to http://207.110.90.59:8080/dash.jsp
6. response is HTTP/1.1 404 [Not Found]
7. navigate to http://someclient.com:8181/
8. response ok and opens page from standalone apache tomcat running on port 80 
localhost
9. end steps

What i'm wondering about ReverseProxy is does it work across separate machines? 
 it does not appear to work across separate IP addresses or domains, etc.  only 
appears to work if all of your web server instances are running on the same 
machine.

What is the expected output? What do you see instead?
expected output is a reverse proxy to my test server located
on a separate machine, but instead i get  HTTP/1.1 404 [Not Found]

What version of the product are you using? On what operating system?
tamacat-httpd-1.0.6

Original issue reported on code.google.com by candoc...@gmail.com on 21 Oct 2013 at 4:40

GoogleCodeExporter commented 8 years ago
Please correct the following of url-config.xml:
 <reverse>http://207.110.90.59:8080/dash.jsp</reverse>

  -> <reverse>http://207.110.90.59:8080/</reverse>

Access to http://test.someclient.com:8181/dash.jsp
reverse -> http://207.110.90.59:8080/dash.jsp

Original comment by tamacat.org on 30 Oct 2013 at 6:02