tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <>
Subject Re: A junk file is downloaded when port number and connection scheme is mismatched in the URL
Date Tue, 13 Feb 2007 15:51:47 GMT
uday shankar Aghalaya boregowda wrote:

> Just a clarification on this again as I see some mails asking for info.
> I am aware, that I am trying to access the tomcat with the url, which is
> erroneous i.,e http://<servername>:8443
> Is there any way I can handle this scenario and send a page not found or
> any other standard errors to the user instead of making him see the junk
> characters or having him to download a junk file(as in firefox)


> This is a bug wherein I want the user the see the standard error page and
> not this junk stuff, which a  user can not understand.

If you expect your users to type https://<servername>:8443 into their 
browser's address bar, you're asking for trouble. Simply don't do that.

For example: Change the ports the HTTP and HTTPS Connectors listen on to the 
resp. standard values, i. e. 80 and 443. Then your users won't need to type 
the port numbers at all and therefore can't get them mixed up.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message