I have the following configuration for a basic load balancing setup:
http {
upstream backend {
ip_hash;
server 192.168.1.12:80;
}
server {
listen 80;
location / {
proxy_pass http://backend;
}
}
}
The problem I have, is although it proxies correcltly to the back server (just one as this is a test.) All the urls in the resulting page get rewritten to "http://backend", causing the page to render incorrectly. How do I prevent this?