From 90af1f25a61a432118bcb2e469081990435bf885 Mon Sep 17 00:00:00 2001 From: Artjoms Morscakovs Date: Wed, 19 Apr 2023 11:52:52 +0300 Subject: [PATCH] There is a typo in this regexpression doc update https://github.com/jenkins-infra/jenkins.io/issues/4014 There is a typo in this reg expression, the backslashes need to be added for this regex to be valid, instead of this: '/static/' into this: '\/static\/' in both places --- .../reverse-proxy-configuration-nginx.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/reverse-proxy-configuration-nginx.adoc b/content/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/reverse-proxy-configuration-nginx.adoc index 8d3d9e078c08..d4a2869f3386 100644 --- a/content/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/reverse-proxy-configuration-nginx.adoc +++ b/content/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/reverse-proxy-configuration-nginx.adoc @@ -58,10 +58,10 @@ server { # pass through headers from Jenkins that Nginx considers invalid ignore_invalid_headers off; - location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" { + location ~ "^\/static\/[0-9a-fA-F]{8}\/(.*)$" { # rewrite all static files into requests to the root # E.g /static/12345678/css/something.css will become /css/something.css - rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last; + rewrite "^\/static\/[0-9a-fA-F]{8}\/(.*)" /$1 last; } location /userContent {