How to disable http requests and use https exclusively with Jetty 7 -


i haven't found answer yet, maybe else's google foo better mine.

i have osgi enabled project using karaf our wrapper jetty. disable http pipe, far have found online how turn on ssl authentication have running. enabled in jetty.xml file adding connector.

i have tried removing/commenting out other connector:

<!-- <call name="addconnector">   <arg>       <new class="org.eclipse.jetty.server.nio.selectchannelconnector">         <set name="host"><property name="jetty.host" /></set>         <set name="port"><property name="jetty.port" default="8181"/></set>         <set name="maxidletime">300000</set>         <set name="acceptors">2</set>         <set name="statson">false</set>         <set name="confidentialport">8443</set>     <set name="lowresourcesconnections">20000</set>     <set name="lowresourcesmaxidletime">5000</set>       </new>   </arg> </call> --> 

but had no effect on disallowing http calls our services. not want re-direct clients http https.

any appreciated.

thanks

to disable http if don't care http https re-directs, wouldn't mess jetty.xml @ all. rather close http ports 80/8080 or whatever configured jetty use. if you're using linux setting firewall rules. firewall first line of defence , http request not make jetty process. off course assuming you're have control on server's firewall.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -