Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 29513 invoked from network); 20 Aug 2010 10:15:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Aug 2010 10:15:17 -0000 Received: (qmail 4345 invoked by uid 500); 20 Aug 2010 10:15:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 4065 invoked by uid 500); 20 Aug 2010 10:15:10 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 4055 invoked by uid 99); 20 Aug 2010 10:15:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 10:15:08 +0000 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,HTTP_ESCAPED_HOST,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mpcsmits@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 10:15:02 +0000 Received: by qwh5 with SMTP id 5so2767800qwh.18 for ; Fri, 20 Aug 2010 03:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=z5eI3BaBfeFbe1jyPgbRmOCnCogRmKBytCMpm/7PW6Q=; b=J3dKI0VDn1ejIZBJ1/ZCNpB2nYd4kSV07y7VzLSoAHmU/KYwGJAcurFdxwrJrl2yWt LXvTwyG912zyJhrzzAGeZqYEoGcSy6HTLA66d5vhIv+RbWUYb73qGcfvS+48BYxK2eqq XYJZVbHYLA6AlUEunOB1VLBHtl5bb6d6NVlvE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FKv2BWaM51p6uHhv0eXfxJn+SRNmdDexDox52QAu92McS7/e1CeYEfInYRDYl4NCAH bGJlmdFrq7m1DgGwL5x6PmwGv5ICASDGVTnpBBEBtG/oG0in+yFb6wex5gHhoaIgHiFV NQvBaM+WCP2w46F28vbYUXIdmzXE9H7tOmrDI= MIME-Version: 1.0 Received: by 10.224.84.75 with SMTP id i11mr798585qal.121.1282299281042; Fri, 20 Aug 2010 03:14:41 -0700 (PDT) Received: by 10.229.46.133 with HTTP; Fri, 20 Aug 2010 03:14:40 -0700 (PDT) Date: Fri, 20 Aug 2010 12:14:40 +0200 Message-ID: From: Mark Smits To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=00c09f88cfed24835b048e3e9188 Subject: [users@httpd] How to redirect ? --00c09f88cfed24835b048e3e9188 Content-Type: text/plain; charset=ISO-8859-1 This is going to be a vey very dumb question, so apologies up front. Using WinAMP with Apache 2.2.11. I need redirections based on host name. Host1, host2 and host3 all are the same server host1 should be staying at host1 at the same port host2 should be redirected to host2 but different port host3 should be redirceted to host3 but antoher different port. So for example http:/// http://:6405/InfoViewApp/logon.jsp I have tried the Redirect directives. I have tried the Rewrite directives. I have put them in httpd.conf file, in the container and in .htaccess file. The alias and rewrite mods are loaded. My last attempt was the very simple RewriteRuel: RewriteRule http:/// http://:6405/InfoViewApp/logon.jsp No matter what I have tried I always end up at http://. It never gets redirected Can someone please give me the exact Rewrite of Redirect directive to use. I am really stumped as why I can not get this to work.... :-( Thanks for any reply... and sorry to bother you with something as simple as this... Kind regards, Mark --00c09f88cfed24835b048e3e9188 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This is going to be a vey very dumb question, so apologies up front. U= sing WinAMP with Apache 2.2.11.
=A0
I need redirections based on host name. Host1, host2 and host3 all are= the same server
=A0
host1 should be staying at host1 at the same port
host2 should be redirected to=A0host2 but different port
host3 should be redirceted to host3 but antoher different port.
=A0
So for example
=A0
=A0
I have tried the Redirect directives. I have tried the Rewrite directi= ves. I have put them in httpd.conf file, in the <Directory /> contain= er and in .htaccess file. The alias and rewrite mods are loaded.
=A0
My last attempt was the very simple RewriteRuel:
=A0
=A0
No matter what I have tried I always end up at http://<host2>. I= t never gets redirected
=A0
Can someone please give me the exact Rewrite of Redirect directive to = use. I am really stumped as why I can not get this to work.... :-(
=A0
Thanks for any reply... and sorry to bother you with something as simp= le as this...
=A0
Kind regards,
Mark
--00c09f88cfed24835b048e3e9188--