.htaccess - Apache reverse-proxy changes the url in the browser -
below configuration:
all https requests redirected port 8081 of apache
and in configuration file of apache using below mentioned configuration
<virtualhost *:8081> servername www.servername.com serveralias servername.com serveradmin webmaster@localhost documentroot /var/www <directory /var/www/> options indexes followsymlinks allowoverride none require granted rewriteengine on rewritebase / rewritecond %{query_string} ^.*_url_=(.*) rewriterule ^.*$ /make?url=%1 [b,l,p,s=1] </directory> proxypreservehost on proxypass /make http://localhost:8084/ proxypassreverse /make http://localhost:8084/ </virtualhost> in 1 more server hosted on port 8084 returns page.
everything working fine, apart url getting changed.
so if making request https://www.servername.com?url=querystring
it returns correct response expected, but url changes to
https://www.servername.com/make?url=querystring
please me in figuring out, parameter missing in apache configuration in proxy, can in avoiding url getting changed.
thanks
Comments
Post a Comment