wiki:nginx_troubleshooting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:nginx_troubleshooting [2023/09/29 10:23] – [nginx seems to serve from wrong vhost?] add point about listen directives antisa | wiki:nginx_troubleshooting [2026/03/18 10:17] (current) – [Headers not proxied to backend server] add test app link antisa | ||
|---|---|---|---|
| Line 85: | Line 85: | ||
| 3. `~`, `~*` Regular expression case sensitive/ | 3. `~`, `~*` Regular expression case sensitive/ | ||
| 4. `/` | 4. `/` | ||
| + | |||
| + | <WRAP center round help 60%> | ||
| + | If you are using the grouping of URIs in parenthesis e.g. | ||
| + | |||
| + | location ^~ / | ||
| + | | ||
| + | This won't work. Use the `~*` modifier for that. | ||
| + | </ | ||
| + | |||
| ==== Tested on ==== | ==== Tested on ==== | ||
| * nginx/ | * nginx/ | ||
| + | |||
| + | |||
| + | ===== The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key ===== | ||
| + | |||
| + | Run: | ||
| + | apt-key add / | ||
| + | |||
| + | After you've added the [[https:// | ||
| + | |||
| + | ==== Tested on ==== | ||
| + | * nginx/ | ||
| + | * Debian 10 Buster | ||
| + | |||
| + | ===== Headers not proxied to backend server ===== | ||
| + | |||
| + | If you are setting proxy headers like: | ||
| + | <code | download> | ||
| + | |||
| + | location / { | ||
| + | proxy_pass | ||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | they will only be visible in the app when 200 OK code is returned. Also headers can't have underscores in them unless '' | ||
| + | |||
| + | Use [[wiki: | ||
| ====== See also ====== | ====== See also ====== | ||
wiki/nginx_troubleshooting.1695982992.txt.gz · Last modified: by antisa
