1 Reply Latest reply on Nov 4, 2014 6:38 PM by Tomaz Cerar

    Wildfly AJP and HTTP simultaneusly

    Dmitri Zamysloff Newbie

      Dear Wildfly-Friends,

       

      I want to be able to access undertow using ajp and http at the same time. Is it possible? The problem which brought me to this question is following.

      I have installation of Wildfly + Apache on CentOS. I set up ajp with mod_jk. The whole static content including Ajax application is hosted on Apache. Direct http port to wildfly is required because of Web-Sockets. So I configured also http connector

       

      undertow:

      <subsystem xmlns="urn:jboss:domain:undertow:1.1">
                  <buffer-cache name="default"/>
                  <server name="default-server">
      
                      <http-listener name="default" socket-binding="http"/>
                      <ajp-listener name="ajp" socket-binding="ajp"/>
                      <host name="default-host" alias="localhost">
                          <location name="/" handler="welcome-content"/>
                          <filter-ref name="server-header"/>
                          <filter-ref name="x-powered-by-header"/>
                      </host>
                  </server>
                  <servlet-container name="default">
                      <jsp-config/>
                  </servlet-container>
                  <handlers>
                      <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
                  </handlers>
                  <filters>
                      <response-header name="server-header" header-name="Server" header-value="WildFly/8"/>
                      <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
                  </filters>
              </subsystem>
      

       

      interfaces:

      <interfaces>
              <interface name="management">
                  <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
              </interface>
              <interface name="public">
                  <inet-address value="${jboss.bind.address:[SERVER_IP]}"/>
              </interface>
              <interface name="unsecure">
                  <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
              </interface>
          </interfaces>
      

       

      here is socket binding

      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
              <socket-binding name="ajp" port="8009"/>
              <socket-binding name="http" port="8080"/>
              <socket-binding name="https" port="${jboss.https.port:8443}"/>
              <socket-binding name="jacorb" interface="unsecure" port="3528"/>
              <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>
              <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/>
              <socket-binding name="txn-recovery-environment" port="4712"/>
              <socket-binding name="txn-status-manager" port="4713"/>
              <outbound-socket-binding name="mail-smtp">
                  <remote-destination host="localhost" port="25"/>
              </outbound-socket-binding>
          </socket-binding-group>
      

       

      as I start such configuration AJP works, but in netstat I cannot see 8080 port. Where is my error?

       

      Thank you very much in advance for your tips.