httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Re: [May be Spam]Re: [users@httpd] Redirect syntax
Date Wed, 13 Aug 2003 15:49:08 GMT

On Wed, 13 Aug 2003, Chad Thompson wrote:
> > You'll probably need to use mod_rewrite for this.  Something like
> >
> > RewriteCond %{REQUEST_URI} ^/dialer
> > RewriteRule /(.*) http://172.26.0.103/$1 [P,L]
> >
> > RerwiteRule /(.*) http://172.26.0.75/$1 [P,L]
> >
> > Replace the P flag with R if you want a redirect rather than a reverse
> > proxy.
> >
>
> Ok, I thnk I understand the distinction between Proxy and Rewrite now....  I
> dont think however that rewrite is what I need.  (Please correct me if I'm
> wrong :-)
>
> I have only one place of entry for the world to see my 3 webservers.  If I
> rewrite, that will tell the world to look for a different external ip to
> find the pages, and I have only 1 external IP.... right?
>
> If I proxy, it works well.  But there doesnt seem to be a ProxyPassMatch to
> allow wild cards and regular expressions.
>
> Is there a way to do wild cards with ProxyPass?... or any other ideas?

mod_rewrite is the swiss-army-knife of URL manipulation.  It can do EITHER
redirecting or proxying, depending on the options.  Note the [P] flag at
the end of the RewriteRule.  That tells mod_rewrite to proxy just like the
ProxyPass directive.

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