6 Replies Latest reply on Jul 9, 2013 2:51 AM by jaikiran pai

    block http access (without blank page) on JBoss AS 7

    khehwan Newbie

      I need to disable HTTP access and only allow HTTPS access to jboss server. Therefore, I have remove the http connector and add https connector to standalone.xml.

      It works correctly. However, when user try to access the website using http protocol with ssl port (ex: http://hostname:<ssl-port>/), then a blank page is shown.


      This is quite annoying as user might thought that the website has problem. How can I block http access completely (instead of a blank page is shown)?


      Below is the my standalone.xml configuration:


              <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" instance-id="main" native="false">
                  <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
                      <ssl name="ssl" key-alias="ssl" password="123456" certificate-key-file="key.keystore" protocol="TLSv1" />
                  <virtual-server name="default-host" enable-welcome-root="false"/>


      Thank you.