Make nginx url matching more strict

This is based off #15. UI counterpart: https://github.com/CUL-DigitalServices/avocet-ui/pull/212.