繁体   English   中英

在apache2上运行spring boot app并提供php内容

[英]Running spring boot app over apache2 and serving php content

我使用代理在apache上运行我的spring启动应用程序。 它也通过安全连接运行。 Apache virtualhost配置是:

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

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

我该如何做到这一点?

改为使用带有P标志的mod_rewrite:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM