Firstly, I think the following is slightly ahead (avoiding double slashes in the proxy request):
location /rss/ {
rewrite ^/rss/(.*) /$1 break;
proxy_pass http://localhost:8080;
proxy_redirect off;
}
location /demo/ {
rewrite ^/demo/(.*)$ /$1 break;
proxy_pass http://localhost:5999;
proxy_redirect off;
}
Secondly, you need to make sure your CSS, etc. are correctly specified in your HTML.
If the CSS file was specified like this in HTML, before proxying:
http:
- HTML, , ( ) :
http://notproxied.com/rss/styles/application.css