Disable HTTP access in Applications Manager
Overview
This article describes configuring a secure connection between Applications Manager server and the browser/client.
Applications Manager can be accessed through any of the following URLs:
- For HTTP -> http://[hostname/ip-address]:[http-port]
- For HTTPS -> https://[hostname/ip-address]:[https-port]
where 9090 and 8443, by default, are the port numbers of HTTP and HTTPS respectively unless changed.
You can verify the ports used in AMServer.properties file (located in <Applications Manager Home>/conf/ directory) under the following keys:
- am.webserver.port = [HTTP port number]
- am.ssl.port = [HTTPS port number]
Note : Below changes are not meant to/does not affect the connection(s) between your Applications Manager and monitoring resources.
HTTP Port settings and options
Running Applications Manager with HTTP enabled may leave your instance exposed to vulnerabilities, such as Man in the middle or DNS Rebinding attacks.
We recommend that you disable HTTP on your instance.
Disable HTTP access
Note: For Applications Manager Plugin users, enable HTTPS in OpManager before disabling HTTP in Applications Manager. For more information, see Enabling HTTPS Configuration in OPM
Steps to disable HTTP port and use only HTTPS port in Applications Manager :
- v15250 or above:
Can be done directly from Applications Manager web console by enabling the below option:
Disable HTTP port in Applications Manager under Admin -> Product Settings -> Security Settings.
- v14680 to v15240:
Can be done directly from Applications Manager web console by disabling the below option:
Enable HTTP port in Applications Manager under Admin -> Global Settings.
- v14670 and below:
Follow the steps given below :
- Open server.xml file located under <Applications Manager Home>/working/apache/tomcat/conf/backup/ directory with a text editor.
- Search for the key port="WEBSERVER_PORT", comment out the entire <Connector ... /> tag and save the file.
- Restart the Applications Manager once for the changes to take effect.
Now, Applications Manager can only be accessed via HTTPS port i.e https://[hostname/ip-address]:[https-port]/
Redirect HTTP to HTTPS
Note: Disabling HTTP port and using only HTTPS port to access Applications Manager is preferred compared to redirecting HTTP traffic to HTTPS.
If the HTTP port is already disabled then no need for HTTP to HTTPS redirection.
Steps to redirect HTTP to HTTPS in Applications Manager:
- For the redirection to work, the HTTP port must not be disabled in the product.
- Verify if the HTTP URL of Applications Manager is accessible using the below URL :
http://[hostname/ip-address]:[http-port]
- Open web.xml file located under <AppManagerHome>/working/WEB-INF/backup/ directory with a text editor.
- Add the following code under the </session-config> tag line.
<web-resource-collection>
<web-resource-name>ApplicationsManager</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
5. Save the file and restart the Applications Manager for the changes to take effect.
Now, All HTTP urls of Applications Manager will automatically redirect to HTTPS url.
General notes
- If you are manually editing a file always take a backup of that file and use it to replace it back in case of any issues.
- Disabling HTTP port is preferred compared to redirecting HTTP traffic to HTTPS.
- Check supported TLS protocols and ciphers using nmap in command terminal.
nmap --script ssl-enum-ciphers -p [https-port] [hostname/ip-address]
- Currently, TLSv1.3 is not supported in Applications Manager.
New to ADSelfService Plus?
Related Articles
Authentication Methods in Applications Manager
Authentication involves validating an incoming user to facilitate the access to a specific resource. There are various authentication methods that you can use - based on the requirements and usage. In recent times, numerous organizations are ...
Self monitor Applications Manager using Real User Monitoring
We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
Failover support in Applications Manager
Failover is an alternate Application High availability (HA) mode that facilitates automatic switching to a secondary/ backup server, database, or network when the primary system breaks down, or is unavailable due to maintenance. Configuring failover ...
Installing Applications Manager in AWS
Applications Manager can be installed in EC2 instances in both Windows and Linux platforms. Applications Manager comes with bundled PostgreSQL. Installing Applications Manager in EC2 for Windows Go to EC2 console and launch an "Windows" instance ...
Applications Manager is not collecting data from Tomcat Server.
If the proxy settings are configured wrong, then Tomcat Data collection will not happen correctly as Applications Manager uses HTTP requests for data collection from Tomcat Server. Check if you are able to access the Tomcat Server from browser in ...