httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sai A <arialwi...@gmail.com>
Subject Re: [users@httpd] RewriteRule : How to retain Apache Host in the url
Date Fri, 12 Nov 2010 10:16:19 GMT
More specifically, look at the
ProxyPass and ProxyPassReverse directives that are present in mod_proxy.

There is another directive called PreserveProxyHost that
you'll have to set to on and the URL won't change in the address bar (HTTP
header).

Sai
On Fri, Nov 12, 2010 at 3:20 PM, Green Wang <cocowool@gmail.com> wrote:

>  you can use mod_proxy
>
> On 11/01/2010 03:54 PM, Tushar Chavan wrote:
>
> Hi Experts,
>
> We have definded rewrite rule as below
> RewriteEngine on
> RewriteRule ^/(sap\(.*)         http://srmhost.kjo.com.sa:8000/$1
> So now whenever url
> https://apache_host.domain/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm<https://apache_host.domain/sap%28bD1lbiZjPTAxNiZkPW1pbg==%29/bc/bsp/sap/z_ros_self_reg1/main.htm>is
called, it
> will re-direct to
> http://srmhost.kjo.com.sa:8000/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm<http://srmhost.kjo.com.sa:8000/sap%28bD1lbiZjPTAxNiZkPW1pbg==%29/bc/bsp/sap/z_ros_self_reg1/main.htm>
> which is ok.
>
> But can we retain apache_host name in the url so that srmhost is not
> visible to the outer world.
>
> Best Regards,
> Tushar.
>
>

Mime
View raw message