aspose file tools
The moose likes Tomcat and the fly likes accessing application using ONLY https and not http Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: accessing application using ONLY https and not http
 
Similar Threads
http https switch
Problem with implementing SSL
http request sending garbage response when request is sent on SSL port.
configuring SSL in tomcat
A small web application