You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ra...@gmail.com on 2009/07/15 00:00:13 UTC

[users@httpd] Canonical ignores port

UseCanonicalName On

ServerName LIMPETstarforce.biz:69
-----------------------------------------------------------
Result:
SERVER_NAME = LIMPETstarforce.biz
SERVER_PORT = 69



UseCanonicalName Off

ServerName LIMPETstarforce.biz:69
-----------------------------------------------------------
Result:
SERVER_NAME = starforce.biz
SERVER_PORT = 69


Result is same for HTTP & HTTPS

SERVER_PORT gets value from ServerName no matter what value of 
UseCanonicalName is
Workaround is to not set a port in ServerName


Is this a bug?

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


Re: [users@httpd] Canonical ignores port

Posted by Sander Temme <sc...@apache.org>.
On Jul 14, 2009, at 3:24 PM, Marcin 'Rambo' Roguski wrote:

>> SERVER_PORT gets value from ServerName no matter what value of
>> UseCanonicalName is
>> Workaround is to not set a port in ServerName
>>
>>
>> Is this a bug?
>
> You're missing Port directive.


Port is no longer in httpd 2.x.  But try to play with  
UseCanonicalPhysicalPort.

S.

-- 
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




Re: [users@httpd] Canonical ignores port

Posted by Marcin 'Rambo' Roguski <ra...@id.uw.edu.pl>.
> SERVER_PORT gets value from ServerName no matter what value of 
> UseCanonicalName is
> Workaround is to not set a port in ServerName
> 
> 
> Is this a bug?

You're missing Port directive.

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