静态文件的 Apache 代理通行证

Apache Proxy pass for static file

我想为所有路径请求路径(/app/**/*.*)提供相同的文件(/app/index.html),并且 /app/index.html 存在于同一 Apache 服务器本身中,不知道如何在 httpd.conf 文件中为此场景设置代理通行证。在添加代理规则方面需要帮助。

看来您只需要简单的 RewriteRule:

RewriteEngine On
RewriteRule ^/app/(.*)/ /app/index.html