I am trying to write a regular expression such as it has /admin in the middle and ends with .css or .js or other formats.
http://example.com/admin/static/style.css
(SHOULD WORK)
http://example.com/admin/static/vendor.js
(SHOULD WORK)
http://example.com/static/style.css
(SHOULD NOT WORK)
I am trying to use this in nginx location block. I tried this
location /admin/\.(css|js)${
}
but not working.
Any ideas?