KB00027825 – Is there a way to disable HTTP after we have enabled SSL

Question: I have enabled SSL following this doc – https://ephesoft.com/docs/enable-ssl/. Is there a way that we can disable HTTP since we have HTTPS running successfully?

Answer: Certainly yes. There are a few steps required, which are listed below.

1.  Web.xml (<Ephesoft Installation Directory>\Application\WEB-INF)
– Look for Line 9, change the port number from 8080 to 443
– Look for Line 13, change the protocol from http to https

– Save the file

2. Server.xml (<Ephesoft Installation Directory>\JavaAppServer\conf)
– Look for the Connector port=”8080″, in this case, at line 60, add the comment tag
<!–<Connector port=”8080″ protocol=”HTTP/1.1″ connectionTimeout=”900000″ redirectPort=”8443″ compression=”on” noCompressionUserAgents=”gozilla, traviata” compressableMimeType=”text/html,text/xml,text/css,text/javascript,image/jpg,image/ico,image/png,image/jpeg,image/tiff,image/tif” maxThreads=”2000″ maxKeepAliveRequests=”200″ maxPostSize=”4194304″ /> –>

– Save the file

3. httpd.conf (<Ephesoft Installation Directory>\Apache24\conf)
– Look for the “Listen 80”, in this case, at line 60, comment it out by putting # in front of “Listen 80”, as shown below:
#Listen 80
– Look for the “ServerName”, in this case, at line 251, comment it out by putting # in front of the “ServerName localhost:80”, as shown below:
#ServerName localhost:80
– Save the file

Once you have completed these steps, restart both the Ephesoft Transact Service and the Ephesoft Web Service
You should now only be able to access the page using https, but not the http. Trying to access the page with http will give you the following error: