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 {