Static files do not load

pratheep g pratheepg619 at yahoo.co.in
Thu Apr 11 21:24:38 UTC 2019


Hi,
I need to rewrite my URL like
http://www.mysite.com/abc    >>>    /abc
                                               >>>    /abc/styles/sample.css
                                                >>>  /abc/styles/sample2.css
                                                >>>  /abc/styles/sample3.css


Here is my rewrite rule:
set $upstream_abc https://internal-abc.demo.com:444;

location ^~ /abc/ {             proxy_set_header x-forwaded-for $proxy_add_x_forwarded_for;             rewrite ^/abc/(.*) /$1 break;             proxy_pass $upstream_abc$uri$is_args$args;        }


The page does load, however the static css files are not loading. Any help on this will be much appreciated.


Thanks,Pratheep




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190411/1b1bb3d8/attachment.html>


More information about the nginx mailing list