Commit aa10dc9
committed
Fix nchan regex to prevent intercepting /sub/ in file paths
The regex pattern '~ /sub/(.*)$' matched /sub/ anywhere in the path,
including file paths like /mnt/disk2/test/foo/sub/file.iso. This caused
nginx to route these requests to the nchan subscriber endpoint instead
of serving the files.
Changed to '~ ^/sub/(.*)$' to only match paths that start with /sub/,
which is the correct behavior for the nchan websocket endpoint.
Fixes #24931 parent 987fa42 commit aa10dc9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
0 commit comments