Re: Incorrect $_SERVER['SERVER_PORT'] Returned

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the quick response Eric.  Well, if I add :

'UseCanonicalPhysicalPort On'

I can then keep my 3rd line within <virtualhost *:443> 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 <covener@xxxxxxxxx> wrote:
On Fri, Oct 16, 2009 at 1:05 PM, Bob Schell <schellb12@xxxxxxxxx> 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@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux