Hi All!
Again a proxy problem. I search the internet for several days with some progress. But still I have some errors.
I have two servers: server1 and server2.
Server1 is reachable from the internet on port 80. Server2 is not. I want to access server2 as it is a subfolder of server1. Meaning:
http://server1/server2 should give me server2.
I made a proxy on server1:
Code:
<Location /server2>
ProxyPass http://server2
ProxyPassReverse http://server2
</Location>
If I use
http://server1/server2, I see the index.html of server2, which is great!
On server2 I have an index.html with:
Code:
<a href="index2.html">index2</a>
If I type:
http://server1/server2/, the above link refers to
http://server1/server2/index2.html. Which is expected.
Strange behaviour 1:
If I type
http://server1/server2 (without the trailing slash), the link refers to
http://server1/index2.html, which is wrong.
Strange behaviour 2:
If a slash is added to the link on server 2:
Code:
<a href="/index2.html">index2</a>
The link refers always to:
http://server1/index2.html, which is wrong.
I played with the Rewrite module, but I have too few knowledge to get it working.
What am I doing wrong?