Given the following configuration:
server { listen 80; server_name site.com; location /proxy { proxy_pass http://newsite.com/; } }
The page hosted on site.com uses the relative path (/main.css) for all the static files, so when I get the proxied page, the browser requests static files with the wrong path:
i.e. .: http://site.com/main.css
How do I want these static files to be requested in the original location (http://newsite.com/main.css)?
source share