2016-07-05 51 views
1

我有使用代理在apache上运行的spring引导应用程序。它也通过安全连接运行。 Apache的虚拟主机配置是:在apache2上运行spring引导应用程序并提供php内容

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

我想在一个文件夹/ gettweets服务器静态内容,这样当用户访问https://myurl/gettweet索引PHP文件将被调用。

我该如何做到这一点?

回答

0

使用mod_rewrite与P标志来代替:

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

好吧,我会尽力的。谢谢。 – nguni52

相关问题