【发布时间】:2017-04-06 13:36:13
【问题描述】:
我正在尝试以这样一种方式设置 FilesMatch 指令,即当用户请求与域名匹配的资源时,才会提供该资源。
例如:
example.com/example.com.html = 好
example.com/other.com.html = 不允许,改为提供error.html
我目前正在考虑像这样配置 Apache:
<FilesMatch regexp+domain_name+regexp>
allow the resource...
</FilesMatch>
但要达到这种效果,我需要以某种方式将请求的域作为变量。
任何建议表示赞赏。
【问题讨论】:
标签: apache url configuration