在apache2上运行spring boot应用程序并提供php内容
我使用代理在apache上运行spring boot应用程序。它还通过安全连接运行。 Apache virtualhost配置为:在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
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]