For the vast majority of ArcGIS Enterprise users, it's appropriate to run ArcGIS Web Adaptor on the default ports 80 and 443. In some rare cases, however, an instance of Web Adaptor cannot use these default ports on the web server that hosts it. For example, the host web server may already have an application running on these ports, or port access may be restricted in a secured organization.
In situations where you cannot configure the portal's Web Adaptor on ports 80 and 443, you can allow it to run on nondefault ports. When doing so, you must configure a reverse proxy server or load balancer and integrate it with your portal. This will enable users to access the portal through the default ports as required. The use of HTTPS should still be maintained to encrypt communication between ArcGIS Web Adaptor and Portal for ArcGIS.
The ArcGIS Web Adaptor configuration file has a property, EnableDefaultPortValidation, which by default enforces the use of default ports 80 and 443 when configuring ArcGIS Web Adaptor with a portal. Changing the value of this property to false bypasses this validation, allowing ArcGIS Web Adaptor to run on nondefault ports.
Configure the portal's ArcGIS Web Adaptor on nondefault ports
If the web server intended to host your portal's ArcGIS Web Adaptor has to run the software on ports other than 80 and 443, you will need to follow additional steps when setting up Web Adaptor via the installation and configuration wizards.
- Enable HTTPS on the web server that will host the web adaptor. Note the port being used for HTTPS communication, as it will be used to access ArcGIS Web Adaptor during initial configuration with the portal.
- Install ArcGIS Web Adaptor on the web server, using the Setup.exe installation wizard as a user with administrative privileges.
- On the machine hosting ArcGIS Web Adaptor, browse to and open the webadaptor.config file in a text editor. By default, this is located in the /root/.webadaptor/<web adaptor name> folder.
- In the webadaptor.config file, locate the property EnableDefaultPortValidation, which has a default value of true. Change the value to false: <EnableDefaultPortValidation>false</EnableDefaultPortValidation>.
- Restart the web server.
- Open the ArcGIS Web Adaptor configuration page in an Internet browser on the HTTPS port being used by the web server using the URL format https://webadaptorhost.domain.com:<https_port>/webadaptorname/webadaptor/portal. If a DNS alias will be used with the portal, Web Adaptor should be configured over the alias instead, using a URL such as https://dnsalias.domain.com:<https_port>/<webadaptorname>/webadaptor/portal.
- For the Portal URL property, type the URL of the machine hosting the Portal for ArcGIS software using the fully qualified domain name of the machine in the URL, such as https://portal.domain.com:7443.
- Supply the user name and password for an account that has administrative privileges to Portal for ArcGIS. Typically, you'll use the initial administrator account's login as defined when you first set up your portal. If you demoted or deleted the initial administrator account, you'll need to specify a different account with administrative access to the portal website.
- Click Configure.
- Configure the portal with your organization's reverse proxy server or load balancer, so that users access the portal through the default ports. To do this, you need to provide some information to the portal about the reverse proxy or load balancer. For full instructions, see Use a reverse proxy server with Portal for ArcGIS.
- After you have set up the reverse proxy or load balancer with your portal, refresh the ArcGIS Web Adaptor configuration page to update it.
When this workflow is complete, ArcGIS Web Adaptor is configured for use with your ArcGIS Enterprise portal. Users will only access the portal and the ArcGIS Portal Administrator Directory through the reverse proxy sever, with the URL format https://reverseproxy.domain.com/webadaptorname/home, rather than through port 7443.
Silently configure the portal's ArcGIS Web Adaptor (Java Platform) on nondefault ports
The installation and configuration of your ArcGIS Web Adaptor (Java Platform) can also be done from the command line, with additional steps to run on nondefault ports.
Note:
To execute the command line utility, Java Runtime Environment (JRE) must be present on the machine hosting ArcGIS Web Adaptor. If JRE is not present on your machine, an error will occur when executing the utility. See the Java SE Downloads site for instructions on how to download and install JRE on your machine.
- Enable HTTPS on the web server that will host the web adaptor. Note the port being used for HTTPS communication, as it will be used to access ArcGIS Web Adaptor during initial configuration with the portal.
- Install ArcGIS Web Adaptor on the web server using the installation command line utility as a user with administrative privileges.
- On the machine hosting ArcGIS Web Adaptor, browse to and open the webadaptor.config file in a text editor. By default, this is located in the /root/.webadaptor/<web adaptor name> folder.
- In the webadaptor.config file, locate the property EnableDefaultPortValidation, which has a default value of true. Change the value to false: <EnableDefaultPortValidation>false</EnableDefaultPortValidation>.
- Restart the web server.
- Configure ArcGIS Web Adaptor using the command line utility configurewebadaptor.sh, which is located in the <ArcGIS Web Adaptor installation directory>/webadaptor<version>/java/tools folder. You'll use the syntax ConfigureWebAdaptor.sh -m <Mode> -w <WebAdaptorURL> -g <Machine Name|URL> -u <Username> -p <Password>. The parameters to provide are as follows:
- <Mode>—The product mode in which ArcGIS Web Adaptor will be configured. Set this parameter to portal for use with Portal for ArcGIS.
- <WebAdaptorURL>—The URL of ArcGIS Web Adaptor that you want to configure from the command line. This is the same URL that would be used if you were accessing the configuration page in a web browser. You're required to specify the HTTPS URL of ArcGIS Web Adaptor—for example, https://webadaptorhost.domain.com:<https_port>/webadaptorname/webadaptor. If a DNS alias will be used with the portal, Web Adaptor should be configured over the DNS alias instead, using a URL such as https://<dnsalias.domain.com>:<https_port>/<webadaptorname>/webadaptor.
- <URL>—The URL of the machine hosting Portal for ArcGIS. Include the fully qualified domain name of the machine in the URL—for example, https://portal.domain.com:7443.
- <Username>—The user name of an account that has administrative privileges to Portal for ArcGIS. Typically, you'll use the initial administrator account you defined when you first set up your portal.
- <Password>—The password of an account that has administrative privileges to Portal for ArcGIS. Typically, you'll use the initial administrator account you defined when you first set up your portal.
Example command
configurewebadaptor.sh -m portal -w https://webadaptorhost.domain.com:https_port/webadaptorname/webadaptor -g portal.domain.com -u initialadmin -p secret123
- Configure the portal with your organization's reverse proxy server or load balancer, so that users access the portal through the default ports. To do this, you need to provide some information to the portal about the reverse proxy or load balancer. For full instructions, see Use a reverse proxy server with Portal for ArcGIS.
When this workflow is complete, ArcGIS Web Adaptor is configured for use with your ArcGIS Enterprise portal. Users will only access the portal and the ArcGIS Portal Administrator Directory through the reverse proxy sever, with the URL format https://reverseproxy.domain.com/webadaptorname/home, rather than through port 7443.