且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apache,LocationMatch:匹配查询字符串

更新时间:2022-06-06 00:34:03

好像您不能在 Location / LocationMatch 中包含查询字符串.

Looks like you can't include query strings in Location/LocationMatch.

来自 Apache文档:

对于所有原始(非代理)请求,要匹配的URL是/path/形式的URL路径.不包括方案,主机名,端口或查询字符串.对于代理请求,要匹配的URL格式为scheme://servername/path,并且必须包含前缀.

For all origin (non-proxy) requests, the URL to be matched is a URL-path of the form /path/. No scheme, hostname, port, or query string may be included. For proxy requests, the URL to be matched is of the form scheme://servername/path, and you must include the prefix.