httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] RewriteRule : How to retain Apache Host in the url
Date Mon, 01 Nov 2010 12:06:39 GMT
On Mon, Nov 1, 2010 at 3:54 AM, Tushar Chavan <tushar.chavan@hotmail.com> 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@gmail.com

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message