@@ -0,0 +1,2139 @@
+/*%0A * Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.search.nibrs.web;%0A%0Aimport org.apache.catalina.connector.Connector;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;%0Aimport org.springframework.boot.web.servlet.server.ServletWebServerFactory;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A@Configuration%0Apublic class ServerSetup %7B%0A    @Autowired %0A    AppProperties appProperties; %0A    %0A    @Bean%0A    public ServletWebServerFactory servletContainer() %7B%0A        TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory() ;%0A        %0A        if (appProperties.getAjpEnabled()) %7B%0A            Connector ajpConnector = new Connector(%22AJP/1.3%22);%0A            ajpConnector.setPort(appProperties.getAjpPort());%0A            ajpConnector.setSecure(false);%0A            ajpConnector.setScheme(%22http%22);%0A            ajpConnector.setAllowTrace(false);%0A            tomcat.addAdditionalTomcatConnectors(ajpConnector);%0A        %7D%0A     %0A//        tomcat.addAdditionalTomcatConnectors(redirectConnector());%0A        return tomcat;%0A    %7D%0A%0A//    private Connector redirectConnector() %7B%0A//        Connector connector = new Connector(%22org.apache.coyote.http11.Http11NioProtocol%22);%0A//        connector.setScheme(%22http%22);%0A//        connector.setPort(8080);%0A//        connector.setSecure(false);%0A//        connector.setRedirectPort(8443);%0A//        return connector;%0A//    %7D%0A%7D%0A

Add the ajp port configuration.