[jboss-dev-forums] [JBoss AS 7 Development] - Re: Creating a custom HTTPSConnector is JBOSS AS 7.1

Saran Arul do-not-reply at jboss.com
Wed Oct 17 17:52:34 EDT 2012


Saran Arul [https://community.jboss.org/people/saransna] created the discussion

"Re: Creating a custom HTTPSConnector is JBOSS AS 7.1"

To view the discussion, visit: https://community.jboss.org/message/766507#766507

--------------------------------------------------------------
Looks like the way to do this is write a custom protocol handler class (extending any of the standard handlers like org.apache.coyote.http11.Http11Protocol) and specifying that class name in the protocol attribute as follows,

<subsystem xmlns="urn:jboss:domain:web:1.2" default-virtual-server="default-host" native="false">
<connector name="https" protocol="*com.yourcompany.infra.CustomHttpsHandler*" scheme="https" socket-binding="https" enable-lookups="false" secure="true">
             <ssl name="ssl"
             key-alias="test"
             password="nextgen!"
             certificate-key-file="/Users/sarul/jboss-as-7.1.3.Final/standalone/configuration/test.keystore"
             protocol="TLSv1"
             verify-client="false"/>
            </connector>
              <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
        </subsystem>

This seems to work for me so far.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/766507#766507]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121017/14d0e594/attachment.html 


More information about the jboss-dev-forums mailing list