Hi,
I followed the instructions to create a proxy pass based on a remote server location:
location /location1 {
proxy_pass http://192.168.9.202/;
}
and it ALMOST works fine except when the elements on the destination web page are referenced starting with /.
Example:
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
This url works and it's rewritten correctly like this: http://192.168.9.202/location1/css/reset.css
and
<script src="/js/lib/rc.min.js" onload="$rc.ready();"></script>
This url doesn't work because it starts with an absolute path and it's rewritten like this: http://192.168.8.202/js/lib/rc.min.js but it should be http://192.168.8.202/location1/js/lib/rc.min.js
Can someone help me?
Thankx