tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: [OT?] Virtual hosting - does the port need to match the URL port?
Date Tue, 17 May 2011 21:17:59 GMT
2011/5/18 sebb <sebbaz@gmail.com>:
> As far as I can tell, Tomcat validates the format of the Host header,
> but otherwise ignores the port?
> Is that correct?

No.
See e.g. Http11Processor.parseHost(MessageBytes) in trunk. The last
line there is
[[[
  request.setServerPort(port);
]]]
where port number in parsed from the header.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message