You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Thomas Jackson (JIRA)" <ji...@apache.org> on 2014/10/16 23:18:33 UTC

[jira] [Created] (TS-3141) Port number in host header breaks ATS remap

Thomas Jackson created TS-3141:
----------------------------------

             Summary: Port number in host header breaks ATS remap
                 Key: TS-3141
                 URL: https://issues.apache.org/jira/browse/TS-3141
             Project: Traffic Server
          Issue Type: Bug
            Reporter: Thomas Jackson


If someone adds port 80 (lets say) to the host header of a request, ATS remap fails

{code}
[thjackso@thjackso-ld ~]$ curl -I -4k -H 'Host: www.ogre.com:80' https://www.ogre.com
HTTP/1.1 404 Not Found on Accelerator
Date: Thu, 16 Oct 2014 21:14:02 GMT
Connection: keep-alive
Via: https/1.1 cosmo.ogre.com (ApacheTrafficServer/5.2.0 [c s f ])
Server: ATS/5.2.0
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Content-Length: 297
{code}

Although if you set the port to 443 it seems to work fine
{code}
[thjackso@thjackso-ld ~]$ curl -I -4k -H 'Host: www.ogre.com:443' https://www.ogre.com
HTTP/1.1 200 OK
Date: Thu, 16 Oct 2014 21:15:09 GMT
Server: ATS/5.2.0
X-Drupal-Cache: MISS
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Thu, 16 Oct 2014 21:15:09 +0000
Cache-Control: public, max-age=300
Content-Language: en
X-Generator: Drupal 7 (http://drupal.org)
Vary: Cookie
Content-Type: text/html; charset=utf-8
Age: 0
Connection: keep-alive
Via: http/1.1 cosmo.ogre.com (ApacheTrafficServer/5.2.0 [cMsSf ])
{code}

In addition I can send a host header with 443 on the http port and I'll get similar behavior. This leads me to believe that if you set the port to anything that isn't the default for the schema you are connecting on it fails remap (url looks like https:/// in the logs).

I would think that the port in the host header would be completely ignored.... right?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)