Hot answers tagged

1

You are mapping Port 80 to the port 8000 in your docker-compose.yml. Your requests never reach nginx. ports: - "80:80" - "443:443"


1

Using Nginx as Reverse-Proxy to Access Grafana everywhere The Constellation: Server A is a server without Internet (i.e., a Dedicated Server, NAS, etc...) server B is a server with Internet AND access to LAN (Second Ethernet Card i.e.) In this case, myself assumes, that Both servers are being on the same LAN or is allowed by Owner or Firewall Rules to do ...


1

You probably need to define a resolver as you are using proxy_pass with variables. However, the functionality you are looking for can be achieved more simply using a prefix location rather than a regular expression: location /v2/ { proxy_pass http://localhost:3000/; }


1

First of all, your ^/(123[0-9])$ regex will match only /1234 URI (or /1230, /1231, etc.) but not the /1234/some/path since you are using the $ end-of-string anchor. I'm assuming it isn't an error but a design solution. If it isn't, to match both /1234 and /1234/some/path (but not something like /12345), you can use an alternation: ^/(123[0-9])(?:/|$) (I'm ...


1

IIRC nginx asks its worker threads to restart soon when you send a reload - and with HTTP/2 it can take a while for the threads to recycle (they wait until they are idle). it works but with some seconds of downtime Erk, I'm running approx 200 sites behind my nginx proxies and it takes about half a second to do a restart on each one.


Only top voted, non community-wiki answers of a minimum length are eligible