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] redirecting with apache 1.3
Date Tue, 12 Oct 2004 23:28:44 GMT
On Tue, 12 Oct 2004 12:05:53 -0700 (MST), Donald Raikes <don@draikes.com> wrote:
> <virtualhost *>
> servername address2
> redirect address2 192.168.1.100:8888/home.html
> redirectmatch (.*)\*.html 192.168.1.100:8888/$1.html
> </virtualhost>
> 
> Will that direct
> http://www.address2 to 192.168.1.100/home.html
> and
> 
> http://www.address2/test.html to 192.168.1.100:8888/test.html?

No.  Redirect takes only a URL-path (the part after the host/port),
not a full URL.  So you probably want something more like
RedirectMatch ^/$ http://192.168.1.......
RedirectMatch (.*)\.html http://192.168.....

But the fact that you are using non-routable IP addresses is a little
worying.  You do realize that Redirect(Match) will ask the client to
refetch the page at the new address?  If you want the server to fetch
the page and return it to the client, you need to look at ProxyPass or
the  [P] flag to RewriteRule.

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