I have a WebAdaptor set up at a non-standard Port 447. A ReverseProxy and the Portal's WebContext-URL are configured as well. When accessing the Portals /home/ Page, all reqeusts are routed correctly. But after Login, some resources are requestes with port 7443 included. Here is my setup:
I followed the documentation (https://enterprise.arcgis.com/de/portal/latest/administer/windows/use-a-non-default-port-for-the-portal-s-web-adaptor.htm) and at some point after Login a resource is requested using the internal portal port:
https://reverseproxy.domain.com:7443/arcgisportal/sharing/rest/portals/self/subscriptionInfo?f=json
This happens in the base.js --> getSecureUrl function. For some reason the property esriGeowConfig.self.httpsPort is set to 7443. The property location.hostname is set to the reverseproxy. When that method is entered, the given url is just fine:
https://reverseproxy.domain.com/arcgisportal/sharing/rest/portals/self/subscriptionInfo
Within that method that if-statement basically does this:
b = b.replace(location.hostname, location.hostname + ":" + esriGeowConfig.self.httpsPort)
As result, the url is returned as
https://reverseproxy.domain.com:7443/arcgisportal/sharing/rest/portals/self/subscriptionInfo
Note: I do have another webadaptor running on webserver.internal.com which uses the default port 443. As expected, everything works fine. (I need those two webadaptors, because I have one set up for IWA and the other for anonymous access).