Skip to content

Commit fe8783a

Browse files
authored
Merge pull request #2494 from mgutt/fix-issue-2493
Fix nchan regex to prevent intercepting /sub/ in file paths
2 parents d7e3128 + aa10dc9 commit fe8783a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/rc.d/rc.nginx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ build_locations(){
412412
#
413413
# nchan subscriber endpoint
414414
#
415-
location ~ /sub/(.*)$ {
415+
location ~ ^/sub/(.*)$ {
416416
nchan_subscriber;
417417
nchan_subscriber_timeout 0;
418418
# nchan_authorize_request <url here>

0 commit comments

Comments
 (0)