Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在apache2上运行spring boot应用程序并提供php内容_Php_Apache_Apache2 - Fatal编程技术网

在apache2上运行spring boot应用程序并提供php内容

在apache2上运行spring boot应用程序并提供php内容,php,apache,apache2,Php,Apache,Apache2,我使用代理在apache上运行spring boot应用程序。它还通过安全连接运行。 Apache virtualhost配置为: ProxyPreserveHost On ProxyPass / https://localhost:8443/ ProxyPassReverse / https://localhost:8443/ 我想在文件夹/gettweets中提供静态内容,这样当用户访问索引php文件时,就会调用该文件 如何实现这一点?改用带有p标志的mod_rewrite: Rewrit

我使用代理在apache上运行spring boot应用程序。它还通过安全连接运行。 Apache virtualhost配置为:

ProxyPreserveHost On
ProxyPass / https://localhost:8443/
ProxyPassReverse / https://localhost:8443/
我想在文件夹/gettweets中提供静态内容,这样当用户访问索引php文件时,就会调用该文件


如何实现这一点?

改用带有p标志的mod_rewrite:

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

改用带有p标志的mod_rewrite:

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