tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Pabst <simon.pa...@web.de>
Subject Re: FW: question
Date Thu, 24 Jul 2003 10:32:49 GMT
At 10:42 24.07.2003 +0200, you wrote:
>Question :
>
>I've made a servlet and I can run it when I type the url :
><http://server.mynetwork.be:8080> http://server.mynetwork.be:8080
>The URL will automatically switch to
><https://server.mynetwork.be:8443/index.html>
>https://server.mynetwork.be:8443/index.html , this is ok.
>
>But if anyone types the URL  <http://server.mynetwork.be:8443>
>http://server.mynetwork.be:8443 (so no secure html, but on the secured port
>8443)
>than I get some strange things :
>
>With Netscape I get a dialog : "You have chosen to download a file of type:
>application/octet-stream from  <http://server.mynetwork.be:8443/>
>http://server.mynetwork.be:8443/,
>                                                What shoul Netscape 6 do with
>this file ? * Open Using ....   * Save to Disk "
>
>With I.E. , the file opens immediately in the browser, displaying ''.
>The name of the file is always random.

Apache is better regarding that, it puts out an error message, saying that 
you're speaking plain http to a https port.
That isn't implemented in Tomcat i guess, so the browsers get some weird 
content and behave each in another way then.

>
>How can I prevent this ?
>Is there a way that if someone types  <http://server.mynetwork.be:8443/>
>http://server.mynetwork.be:8443 this person will get redirected to
><https://server.mynetwork.be:8443/index.html>
>https://server.mynetwork.be:8443/index.html  instead ?
>

Don't know if it's possible to do redirects in Tomcat itself,
however you could put Apache with mod_rewrite in front to do that.


>
>Greetings,
>
>Kris Vansant
>SIEMENS Atea
>Kris.Vansant@siemens.com <mailto:Kris.Vansant@siemens.com>
>phone:   +32 14 253049
>mobile:
>Fax:       +32 14 22 29 94
>
>Mobile Solutions
>and Enabling Services
>http://www.ic.siemens.be <http://www.ic.siemens.be/eng/default_rd.shtm>
>
>
>The only thing more accurate than incoming enemy fire is incoming friendly
>fire.
>
>


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


Mime
View raw message