I have my spring boot application running over apache using proxy. It is also running over a secure connection. Apache virtualhost config is:
ProxyPreserveHost On
ProxyPass / https://localhost:8443/
ProxyPassReverse / https://localhost:8443/
I want to server static content in a folder /gettweets, so that when a user access https://myurl/gettweet the index php file will be called.
How do I accomplish this?
Use mod_rewrite with the P flag instead:
RewriteEngine on
RewriteRule ^gettweet/.*$ /gettweet/index.php [L]
RewriteRule ^(.*)$ https://localhost:8443/$1 [L,P,QSA]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.