Summary
The Apache Tomcat version installed with FlexNet Code Insight 2020 R2 or 6.14.1 (and later) provides the Apache JServ Protocol (AJP) connector, which is disabled by default at installation. Although FlexNet Code Insight does not require this connector, you might need it to support a Tomcat load-balancing scenario for your Code Insight environment. The following sections describe how to manually enable and disable the APJ connector as needed.
Enabling the Apache AJP Connector
The following method enables the Apache AJP connector so that it starts with security enabled.
- Open the Tomcat
server.xmlfile in a text editor:- On Windows, open
{CODEINSIGHT_ROOT_DIR}\tomcat\conf\server.xml. - On Linux, open /etc/tomcat9/server.xml.
- On Windows, open
- Search for the string
8009to locate the following line in theserver.xmlfile:<Connector port="8009" redirectPort="8443" protocol="AJP/1.3"/> - Update the line with these new attributes (highlighted):
The following explains the new attributes:<Connector port="8009" protocol="AJP/1.3" secretRequired="true" redirectPort="8443" secret="<string>"/>- secretRequired=“true”—When set to true, indicates that AJP connector will start only if the secret attribute is included and defined with a proper value (see below). The true value is strongly recommended to ensure that the connector is accessed only by workers in the load-balancing cluster that provide the secret value.
- secret= “<string>”—Any string value that is non-null and has a non-zero length. Workers in the load-balancing cluster must provide this same string when making requests; otherwise, their requests are rejected.
- Save the file.
- Restart the Apache Tomcat service. (For assistance, see “Starting and Stopping Tomcat” in the FlexNet Code Insight Installation and Configuration Guide.)
Disabling the Apache AJP Connector
The following procedure disables the Apache AJP connector.
- Open the Tomcat server.xml file in a text editor:
- On Windows, open {CODEINSIGHT_ROOT_DIR}\tomcat\conf\server.xml.
- On Linux, open /etc/tomcat9/server.xml.
- Search for the string
8009, and comment out the line about APJ protocol, as shown:<!-- <Connector port="8009" protocol="AJP/1.3" secretRequired="true" redirectPort="8443" secret="string"/> --> - Save the file.
- Restart the Apache Tomcat service. For assistance, refer to either of the following:
- For Code Insight 7.x, “Starting and Stopping Tomcat” in the FlexNet Code Insight Installation and Configuration Guide.
- For Code Insight 6.x, "Administration: Starting and Stopping Servers" in the FlexNet Code Insight Installation and Administration Guide.
Related Articles
Set the Launch Readme Checkbox to Unchecked by Default 3Number of Views How and where to enable the option "Show InstallScript Project types" to create InstallScript Projects in InstallShield Ed… 5Number of Views Maintenance checkbox is enabled by default, when a purchase is linked to a contract 4Number of Views Enabling the Create Icons for All Users Checkbox by Default 21Number of Views Why is date checking and LM_A_CHECK_BADDATE not enabled by default? 10Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago