Document toolboxDocument toolbox

Enable AJP Connector in Smart ID Self-Service

This article is valid for Smart ID 21.04 and later.

This article describes how to enable the AJP Connector in Smart ID Self-Service.

<SMARTIDHOME>

In this article, <SMARTIDHOME> refers to /home/nexus, but this can be different depending on the setup.

The Apache JServ Protocol (AJP) can be used via the AJP connector, see Apache Tomcat 9 Configuration Reference (9.0.40) - The AJP Connector.

  1. Enable the AJP connector:

    1. Open this file for editing: <SMARTIDHOME>/docker/compose/selfservice/config/tomcat-server.xml.

    2. Enable the AJP Connector by removing the comments <!-- and – > and make the necessary settings to fit the AJP.

      <!-- <Connector protocol="AJP/1.3" address="127.0.0.1" port="8009" secretRequired="true" secret="<YOURSECRETHERE>" tcpNoDelay="true" redirectPort="8443" /> --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  2. Enable the port mapping: 

    1. Open this file for editing: <SMARTIDHOME>/docker/compose/selfservice/docker-compose.yml.

    2. Enable port mapping by removing "#". If you want to use another external port for Self-Service, change SELFSERVICE_PORT_AJP in <SMARTIDHOME>/docker/compose/smartid.env.
      # - "${SELFSERVICE_PORT_AJP}:8009"

Copyright 2024 Technology Nexus Secured Business Solutions AB. All rights reserved.
Contact Nexus | https://www.nexusgroup.com | Disclaimer | Terms & Conditions