Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3036 invoked from network); 16 Oct 2009 17:48:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 17:48:43 -0000 Received: (qmail 84363 invoked by uid 500); 16 Oct 2009 17:48:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 84343 invoked by uid 500); 16 Oct 2009 17:48: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 84334 invoked by uid 99); 16 Oct 2009 17:48:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 17:48:39 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of schellb12@gmail.com designates 74.125.92.144 as permitted sender) Received: from [74.125.92.144] (HELO qw-out-1920.google.com) (74.125.92.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 17:48:36 +0000 Received: by qw-out-1920.google.com with SMTP id 14so552427qwa.48 for ; Fri, 16 Oct 2009 10:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8Lmyf4Q6Py8jol9nxTUtq81o9nfiDqMbWGN0jMeB3aw=; b=poZ1w+Qbf6NtaGrRr212d0OITSB7ky+wOjNJ3FS4tN9NJf7h6g0AwDRmLIWAvcf4Y/ aFfh/IswEPAHf55aXRxGcizdciBk1hOLowfs1RCZTBu3ZnXjucCBdrI8FmmdKQmm9+iZ gs8qD8tAxQTDc5CjeVrdmy0E8y7OguQH9VswY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qdxMHT+HFMMboonsYohSVb/28v+B8n3n4vP0wyl7Kb4EsrYAWglITcp8iXfq7EKzEb aBlXt2+ZhC7GAq2jHTh87j1VR7yA2mMOynfXqpgHcPPF56QpJRWN7kdGJcGScLiZwEv9 nQP8xk06VVDAyE1Sa/WzJQ7XdPxTQwBCiWtb4= MIME-Version: 1.0 Received: by 10.229.59.215 with SMTP id m23mr274607qch.4.1255715295221; Fri, 16 Oct 2009 10:48:15 -0700 (PDT) In-Reply-To: <1404e5910910161012x682fda79yf7bd9c9ed3c605fc@mail.gmail.com> References: <1404e5910910161012x682fda79yf7bd9c9ed3c605fc@mail.gmail.com> Date: Fri, 16 Oct 2009 11:48:15 -0600 Message-ID: From: Bob Schell To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=002354790ac01c590404761100e7 Subject: Re: [users@httpd] Incorrect $_SERVER['SERVER_PORT'] Returned --002354790ac01c590404761100e7 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the quick response Eric. Well, if I add : 'UseCanonicalPhysicalPort On' I can then keep my 3rd line within be : ServerName name.url.edu (without the :443) And I DO get the proper port returned. However, then, within the application I am using, if I logout of the application and/or navigate around as I used to be able to do, I get the following URL which errors out on me: http://name.url.edu:443/rcsurvey/rp_survey/1.3.1/ You can see that it tacked on the ':443' and changed https to http. Any thoughts? On Fri, Oct 16, 2009 at 11:12 AM, Eric Covener wrote: > On Fri, Oct 16, 2009 at 1:05 PM, Bob Schell wrote: > > The problem I am having is my PHP code is pulling the > > $_SERVER['SERVER_PORT'] variable and this is coming back as 80 rather > than > > 443. To narrow this problem down, I've closed port 80 by commenting out > > 'LISTEN 80' so my server is ONLY listening on port 443. I've verified > this > > via a port scan of my server ... 443 is open, 80 is not. > > There was a thread about this today on this very list, have you tried > the solution there? > > http://marc.info/?l=apache-httpd-users&m=125569605710861&w=2 > > -- > Eric Covener > covener@gmail.com > > --------------------------------------------------------------------- > 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 > > --002354790ac01c590404761100e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the quick response Eric.=A0 Well, if I add :

'UseCano= nicalPhysicalPort On'

I can then keep my 3rd line within <vir= tualhost *:443> be :

ServerName n= ame.url.edu (without the :443)

And I DO get the proper port returned.

However, then, within the= application I am using, if I logout of the application and/or navigate aro= und as I used to be able to do, I get the following URL which errors out on= me:

http://na= me.url.edu:443/rcsurvey/rp_survey/1.3.1/

You can see that it tac= ked on the ':443' and changed https to http.

Any thoughts?

On Fri, Oct 16, 2009 at 11:12 AM, Eric C= ovener <covener@gmail.com> wrote:
On Fri, Oct = 16, 2009 at 1:05 PM, Bob Schell <schellb12@gmail.com> wrote:
> The problem I am having is my PHP code is pulling the
> $_SERVER['SERVER_PORT'] variable and this is coming back as 80= rather than
> 443.=A0 To narrow this problem down, I've closed port 80 by commen= ting out
> 'LISTEN 80' so my server is ONLY listening on port 443.=A0 I&#= 39;ve verified this
> via a port scan of my server ... 443 is open, 80 is not.

There was a thread about this today on this very list, have you tried=
the solution there?

http://marc.info/?l=3Dapache-httpd-users&= m=3D125569605710861&w=3D2

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.<= br> See <URL:
http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.= org
For additional commands, e-mail: users-help@httpd.apache.org


--002354790ac01c590404761100e7--