This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes accessing application using ONLY https and not http Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "accessing application using ONLY https and not http" Watch "accessing application using ONLY https and not http" New topic
Author

accessing application using ONLY https and not http

Sachin Joshi
Ranch Hand

Joined: Mar 23, 2004
Posts: 43
Hi,
I want to access my web Application using ONLY https on tomcat 4.1.29. i.e. access using http should not be possible.
For this, I have created a short application. As per the tomcat doc guidelines, I tried to install JSSE and access https://localhost:8443/<mysiteName>.
Now, I can get the certificate when I access my site using https.
So, to make it accessible using ONLY http, I have commented <Connector > element for non-SSL setup in server.xml file. i.e.
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="80" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
-->
Now, I am able to access my application using only https and not http.
BUT, my question is, is that the only way to achieve only https access ?
has anybody tried better approach than this ? Please share.
Thanks,
Sachin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing application using ONLY https and not http
 
Similar Threads
http request sending garbage response when request is sent on SSL port.
A small web application
configuring SSL in tomcat
http https switch
Problem with implementing SSL