I'm reverse proxying to a IP restricted page like this:
server {
server_name mypage.com;
listen 80 ;
location / {
proxy_pass https://sandbox.otherpage.com/;
proxy_bind $server_addr;
}
}
This works good but all links on the page (including AJAX calls) links to https://sandbox.otherpage.com/
I am not sure whether I do something wrong or the the other web application I'm proxying to links to the absolute page.
How can I rewrite these links?