Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 539999E35 for ; Sun, 18 Mar 2012 04:30:42 +0000 (UTC) Received: (qmail 86815 invoked by uid 500); 18 Mar 2012 04:30:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86746 invoked by uid 500); 18 Mar 2012 04:30:39 -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 86729 invoked by uid 99); 18 Mar 2012 04:30:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Mar 2012 04:30:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.63.38.2] (HELO alpha.arc.net.au) (203.63.38.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Mar 2012 04:30:32 +0000 Received: from [192.168.1.60] (barra [203.63.39.229]) by alpha.arc.net.au (8.14.4/8.14.4) with ESMTP id q2I4U2Dc006451; Sun, 18 Mar 2012 15:30:02 +1100 (envelope-from spliff@warriorhut.org) Message-ID: <4F6564CA.4050303@warriorhut.org> Date: Sun, 18 Mar 2012 15:30:02 +1100 From: SpliFF User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120307 Thunderbird/10.0.1 MIME-Version: 1.0 To: users@httpd.apache.org CC: aparna Puram References: <4F6504D9.1020302@primary.net> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/alternative; boundary="------------030801090002090805020107" X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Urgent !!! - Rewrite issue --------------030801090002090805020107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 18/03/12 15:02, aparna Puram wrote: > Hello Daniel/Mathijs, > > There is only one virtual host. > > server name is :selecvcp1.sw.ericsson.se > Dns name for that server is : select.ericsson.se > > both will redirect to the same apache > > when I use http:selectvcp1.sw.ericsson.se , I m being redirected to > https://select.ericsson.se. > However, When i type https://selectvcp1.sw.ericsson.se, I m still being in https://selectvcp1.sw.ericsson.se > > I m not sure y. Is there any other way around? > If you expect https to redirect then your condition: RewriteCond %{SERVER_PORT} !^443$ ... is preventing that. What is the purpose of that condition if not to prevent https from redirecting? --------------030801090002090805020107 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 18/03/12 15:02, aparna Puram wrote:
Hello Daniel/Mathijs,

There is only one virtual host.

server name is :selecvcp1.sw.ericsson.se
Dns name for that server is : select.ericsson.se

both will redirect to the same apache

when I use http:selectvcp1.sw.ericsson.se, I m being redirected to https://select.ericsson.se.
However, When i type https://selectvcp1.sw.ericsson.se, I m still being in https://selectvcp1.sw.ericsson.se

I m not sure y. Is there any other way around?


If you expect https to redirect then your condition:

RewriteCond  %{SERVER_PORT} !^443$

... is preventing that. What is the purpose of that condition if not to prevent https from redirecting?

--------------030801090002090805020107--