Welcome! Log In Create A New Profile

Advanced

Static files do not load

pratheep g via nginx
April 11, 2019 05:26PM
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




_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Static files do not load

pratheep g via nginx April 11, 2019 05:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 50
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready