httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Redirect/Rewrite question
Date Wed, 20 Jul 2005 16:05:58 GMT
On 7/20/05, James Sherwood <jsherwood@rgisolutions.com> wrote:
>  
> Scenario: 
>   
> I have an apache server on a global ip and one behind a firewall attached to
> tomcat via mod_jk.  I would like to redirect or rewrite from the global
> apache to the one behind the firewall. 
>   
> What I have done: 
> I am trying to do a rewrite and it is working somewhat.  This is what I
> used: 
>   
> <VirtualHost *> 
> ServerName test.somewhere.com 
> RewriteEngine on 
> RewriteCond %{HTTP_HOST} ^test\.somewhere\.com$ [NC] 
> RewriteRule ^(.*) http://192.146.293.40$1 [p] 
> </VirtualHost> 
>   
> This works in the aspect that it does rewirte to the internal server.  The
> problem is that the server seems to recgonize it as a localhost request.  
>   
> I am trying to get it so a virtual host on the internal server grabs it, one
> like: 
>   
> <VirtualHost *> 
> ServerName test.somewhere.com 
> DocumentRoot /var/www/htdocs/site 
> </Virtualhost> 
>   
> Basically I am going to open up the server behind the firewall to a global
> ip.  But to avoid the 72hour doman delay, I want to just use apache to
> redirect the urls to the new server and have the new server recgonize it as
> the original url 
>   

See ProxyPassPreserveHost.

Joshua.

---------------------------------------------------------------------
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