运行 spring 通过 apache2 启动应用程序并提供 php 内容

Running spring boot app over apache2 and serving php content

我的 spring 引导应用程序 运行 使用代理在 apache 上运行。它也是 运行 通过安全连接。 Apache 虚拟主机配置为:

ProxyPreserveHost On
ProxyPass / https://localhost:8443/
ProxyPassReverse / https://localhost:8443/

我想在文件夹 /gettweets 中提供静态内容服务器,以便当用户访问 https://myurl/gettweet 时将调用索引 php 文件。

我该如何完成?

改为使用 mod_rewrite 和 P 标志:

RewriteEngine on
RewriteRule ^gettweet/.*$ /gettweet/index.php [L]
RewriteRule ^(.*)$ https://localhost:8443/ [L,P,QSA]