Skip to content

Commit

Permalink
There is a typo in this regexpression doc update
Browse files Browse the repository at this point in the history
jenkins-infra#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
  • Loading branch information
artjomsmorscakovs committed Apr 19, 2023
1 parent 2b45e4c commit 90af1f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 90af1f2

Please sign in to comment.