Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 9716 invoked by uid 500); 28 Jan 2003 05:15:05 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 9705 invoked from network); 28 Jan 2003 05:15:04 -0000 Received: from unknown (HELO squarehosting.com) (12.158.191.98) by daedalus.apache.org with SMTP; 28 Jan 2003 05:15:04 -0000 Received: from mars.uni ([12.158.191.98]) by squarehosting.com (8.11.6/8.11.6) with SMTP id h0S5DP432134 for ; Tue, 28 Jan 2003 00:13:26 -0500 Date: Tue, 28 Jan 2003 00:26:52 -0500 From: Jurgen To: users@httpd.apache.org Message-Id: <20030128002652.518f3f11.apache@squarehosting.com> In-Reply-To: <200301280443.h0S4hO432011@squarehosting.com> References: <3DECA1250069712A@pop1.tiscalinet.es> <200301280235.h0S2Zpx31262@squarehosting.com> <20030127220324.2c8bf62c.apache@squarehosting.com> <200301280443.h0S4hO432011@squarehosting.com> X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] hi! ( rewrite ) Hi, you are wrong. Who gave you this false information? It is better to read the documentation first as Zac also said. Second, it would be also good if you specified more clearly what you want to do, although I think I have some idea. In most cases it helps if you describe not just what you do, but also the purpose. I think you would like to host domains, which you would like to be accessible in the regular way, but also through http://IP/domain. If this is what you like you should proxy. If you just want to tell the browser to go somewhere else use [R] for "Redirect". Jurgen On Tue, 28 Jan 2003 05:44:45 +0100 Uxio Faria wrote: > > EOOO [R] isn't "redirect", is REWRITE !!! > > first change the request and second proxy them. > > El Mar 28 Ene 2003 04:03, escribi�: > > Hi, > > > > both don't work. > > Redirect tells the browser to go to somewhere else and with proxy the file > > is fetched by the webserver and displayed to the browser as if it was > > coming from the server itself, although it might be another server. > > > > Jurgen > > > > > > On Tue, 28 Jan 2003 03:37:31 +0100 > > > > Uxio Faria wrote: > > > hehe, both. > > > > > > And I know that works, With only one domain, it's no problem, the problem > > > is with more. > > > > > > El Mar 28 Ene 2003 03:33, escribi�: > > > > Hi, > > > > > > > > which one do you want? Redirect or Proxy? > > > > > > > > Jurgen > > > > > > > > > > > > On Tue, 28 Jan 2003 03:06:50 +0100 > > > > > > > > Uxio Faria wrote: > > > > > Well, you are right. i not explain very well this. > > > > > > > > > > El Mar 28 Ene 2003 03:05, escribi�: > > > > > > REQUEST_URI does not contain host information. for example. for > > > > > > the URL http://somehost.com/somelink.htm REQUEST_URI refer to the > > > > > > string "/somelink.htm" > > > > > > > > > > > > For your redirect purpose, you should use the http header, > > > > > > "HTTP_HOST" instead. > > > > > > > > > > > > RewriteCond %{HTTP_HOST} ^any_word > > > > > > RewriteRule ^/(.*) http://www.any_web.com/$1 [L,R] > > > > > > > > > > > > You might want to check out the mod_rewrite guide, you will find a > > > > > > lot of handy example there. > > > > > > > > > > > > http://httpd.apache.org/docs/misc/rewriteguide.html > > > > > > > > > > > > Good luck. > > > > > > > > > > > > Tor. > > > > > > > > > > > > Uxio Faria wrote: > > > > > > > somebody knows something about this?!!!! > > > > > > > > > > > > > > El S�b 25 Ene 2003 05:21, escribi�: > > > > > > > > I wanna configure apache with mod_rewite to redir a > > > > > > > > "http://any_word" to "http://www.any_web.com" but with proxy > > > > > > > > rewrite. > > > > > > > > > > > > > > > > i tried this with: > > > > > > > > > > > > > > > > RewriteCond %{REQUEST_URI} ^any_word$ > > > > > > > > RewriteRule ^/(.*) http://www.any_web.com/$1 [R,P] > > > > > > > > > > > > > > > > But this only rewrite the first page, and the links of the page > > > > > > > > apears broken. > > > > > > > > > > > > > > > > How can i make this? > > > > > > > > > > > > > > > > Sorry for my bad english. > > > > > > > > > > > > > > > > Best regards. > > > > > > > > > > > > > > > > --------------------------------------------------------------- > > > > > > > >---- -- The official User-To-User support forum of the Apache > > > > > > > > HTTP Server Project. See > > > > > > > > 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 > > > > > > > > > > > > > > -- > > > > > > > --------------------- > > > > > > > Uxio Faria Giraldez > > > > > > > --------------------- > > > > > > > SISTEMAS PRISACOM > > > > > > > ufaria@prisacom.com > > > > > > > TLF: 91 353 7770 > > > > > > > --------------------- > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > > >---- The official User-To-User support forum of the Apache HTTP > > > > > > > Server Project. See > > > > > > > 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 > > > > > > > > > > > > ------------------------------------------------------------------- > > > > > >-- The official User-To-User support forum of the Apache HTTP Server > > > > > > Project. See 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 > > > > > > > > > > -- > > > > > --------------------- > > > > > Uxio Faria Giraldez > > > > > --------------------- > > > > > SISTEMAS PRISACOM > > > > > ufaria@prisacom.com > > > > > TLF: 91 353 7770 > > > > > --------------------- > > > > > > > > > > --------------------------------------------------------------------- > > > > > The official User-To-User support forum of the Apache HTTP Server > > > > > Project. See 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 > > > > > > > > --------------------------------------------------------------------- > > > > The official User-To-User support forum of the Apache HTTP Server > > > > Project. See 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 > > > > > > -- > > > --------------------- > > > Uxio Faria Giraldez > > > --------------------- > > > SISTEMAS PRISACOM > > > ufaria@prisacom.com > > > TLF: 91 353 7770 > > > --------------------- > > > > > > --------------------------------------------------------------------- > > > The official User-To-User support forum of the Apache HTTP Server > > > Project. See 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 > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server Project. > > See 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 > > -- > --------------------- > Uxio Faria Giraldez > --------------------- > SISTEMAS PRISACOM > ufaria@prisacom.com > TLF: 91 353 7770 > --------------------- > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See 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 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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