when used as middleware, put an actual URL, not just an absolute path, into the config...url fields