解决方法
Apache的
content negotiation有一个名为
MultiViews
的选项,它可以在没有扩展名的情况下提供文件:
The effect of MultiViews is as follows: if the server receives a request for /some/dir/foo,if /some/dir has MultiViews enabled,and /some/dir/foo does not exist,then the server reads the directory looking for files named foo.*,and effectively fakes up a type map which names all those files,assigning them the same media types and content-encodings it would have if the client had asked for one of them by name. It then chooses the best match to the client’s requirements.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。