tomcat-users mailing list archives

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

> I am facing a peculiar issue in my server running Apache Tomcat/5.5.9.
> I have a Tomcat server setup with 8080 and 8443 ports listening for http
> and https connections.
>
> When I access the tomcat welcome page hosted in my server as below,
> http://<servername>:8080 OR https://<servername>:8443
>
> I get the expected web page. But when I change the scheme and port number,
> as below,
> http://<servername>:8443
> This is what happens,
> In IE:
> Displays junk characters (in precise, 4 boxes)
>
> In Mozilla/Safari(Mac):
> Downloads a junk file which says that it is of type
> "application/octet-stream"

Accessing an HTTPS Connector via an http:// URL (or vice versa) won't work. 
It's as simple as that.

> To shed some more light on the issue,
> When I changed the secure server port to 443 and i tried accessing URL,
> http://<servername>:443 it took me to the default tomcat welcome page and
> for any other port other than 443, it gave me the same behavior.

I don't think you changed the port of the HTTPS Connector but the HTTP 
Connector.

> Please let me know if there is any solution for this above scenario and
> your comments on what is causing this behavior.

Of course there's a solution for the strange behaviour you see when you access 
an HTTPS Connector via http://:
Stop doing that.

Regards
  mks

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


Mime
View raw message