Hi Eric,
We have set SERVER_NAME & HTTP_HOST env. variables but still it is not working.
Let me explain our scenario.
https://srmdevarp01.domain/irj ( this url will give us the portal page )
On the the portal page there is href ( href=""https://srmdevarp01.domain/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm" target=_blank>https://srmdevarp01.domain/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm" ) for self registration.
Now when anyone will click on the href they will be redirected to the srmsbx host by rewrite rule ( RewriteRule ^/(sap\(.*) http://srmsbx.domain:8000/$1 ) i.e whoever clicks on the self registration button on the portal page , will be re-directed to
http://srmsbx.domain:8000/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm.
Now here we want to retain apache host name i.e srmdevarp01 just like we do with ProxyPreserveHost. Please let me know if there is way to do it.
Best Regards,
Tushar
> Date: Mon, 1 Nov 2010 08:06:39 -0400
> From:
covener@xxxxxxxxx> To:
users@xxxxxxxxxxxxxxxx> Subject: Re: RewriteRule : How to retain Apache Host in the url
>
> On Mon, Nov 1, 2010 at 3:54 AM, Tushar Chavan <
tushar.chavan@xxxxxxxxxxx> 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> > is called, it
> > will re-direct to
> >
http://srmhost.kjo.com.sa:8000/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm> > which is ok.
>
> %{SERVER_NAME} or %{HTTP_HOST}
> >
> > But can we retain apache_host name in the url so that srmhost is not visible
> > to the outer world.
> >
> > Best Regards,
> > Tushar.
> >
>
>
>
> --
> Eric Covener
>
covener@xxxxxxxxx>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:
http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail:
users-unsubscribe@xxxxxxxxxxxxxxxx> " from the digest:
users-digest-unsubscribe@xxxxxxxxxxxxxxxx> For additional commands, e-mail:
users-help@xxxxxxxxxxxxxxxx>