Static files do not load

pratheep g pratheepg619 at
Thu Apr 11 21:24:38 UTC 2019

I need to rewrite my URL like    >>>    /abc
                                               >>>    /abc/styles/sample.css
                                                >>>  /abc/styles/sample2.css
                                                >>>  /abc/styles/sample3.css

Here is my rewrite rule:
set $upstream_abc;

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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list