Generate a general.conf without media caching for reverse proxy consumption.
Information
The routing does not pass through the proxy when location handling for media caching is present in the general.conf, instead nginx attempts to route these requests via the default site.
The directory of the default site - in my case - is empty. It doesn't contain the css or js resources the web app at the proxy_pass offers.
It is not desired and not reasonable to cache a proxy location by default.
Details
Description
This is caused by the location handling in general.conf included in every reverse proxy domain.
Generate a
general.conf
without media caching for reverse proxy consumption.Information
The routing does not pass through the proxy when location handling for media caching is present in the
general.conf
, instead nginx attempts to route these requests via the default site. The directory of the default site - in my case - is empty. It doesn't contain thecss
orjs
resources the web app at theproxy_pass
offers. It is not desired and not reasonable to cache a proxy location by default.Details
Description
This is caused by the location handling in
general.conf
included in every reverse proxy domain.Steps to reproduce
localhost:3000
.app.example.com
tolocalhost:3000
.app.example.com
in your browsergeneral.conf
will fail with 404.Expected behavior
Resources are requested from the reverse proxy
Screenshots