Re: trouble with static content (Revised)

2021-11-07 Thread Francis Daly
On Sun, Nov 07, 2021 at 11:00:39AM -0500, deeztek wrote: Hi there, > >The config above says that nginx should serve something like the file > >/usr/local/nginx/html/static/js/vendor.d0bc79df.js in response to the > >first request. The actual response is a 404. Does that file exist? > > The

Re: trouble with static content (Revised)

2021-11-07 Thread deeztek
>The config above says that nginx should serve something like the file >/usr/local/nginx/html/static/js/vendor.d0bc79df.js in response to the >first request. The actual response is a 404. Does that file exist? The specific /static/js/vendor.d0bc79df.js files does not exist in

Re: trouble with static content (Revised)

2021-11-07 Thread Francis Daly
On Sun, Nov 07, 2021 at 08:46:17AM -0500, deeztek wrote: Hi there, > So when I say static content, I mean resources such as .css, .js .png, .jpg > etc. Ok, so let's use one "js" request as an example here. In nginx, one request is handled in one location. Only the config in, or inherited into,

Re: trouble with static content (Revised)

2021-11-07 Thread deeztek
Hi, So when I say static content, I mean resources such as .css, .js .png, .jpg etc. so, with the following in place: location ~* .(?:ico|css|js|gif|jpe?g|png|woff2|map)$ { expires max; } Requests to the / location, I get 404s: GET https://host.domain.tld/static/js/vendor.d0bc79df.js

Re: trouble with static content (Revised)

2021-11-07 Thread Francis Daly
On Sun, Nov 07, 2021 at 07:01:58AM -0500, deeztek wrote: Hi there, > With the following configuration, I get static content on the /admin > location but NOT the / location: Can you give some specific examples of requests that you make, responses that you get, and responses that you want to get