I'm running ArcGIS Server and Portal 10.6.1 with a web adaptor configured for each on the same server. Everything was working fine, but suddenly viewer pages are not loading. Upon inspection, I realized that the viewers are being redirected to {servername}.com instead of {alias}.com. On our intranet, {servername}.com does not resolve because it is not secure (our ssl certificate is set to {alias}.com). On the server, when I try to login to Portal, it does the same redirection, away from {alias}.com/portal to {servername}.com:7443/arcgis/home. At first I suspected the web adaptor, but then I tried to login at {alias}.com:7443 and it still redirects. Interestingly, I can login to portaladmin at (alias}.com/portal/portaladmin. I've rebooted the server, tried unregistering and re-registering the web adaptor, added a web context url to system properties (https://{alias}.com/portal), however I keep hitting this redirect problem. Anyone know what may have happened?
I assume you have the WebContextURL set? What URL are you accessing and what URL is it redirecting to? I assume it redirects to the internal hostname, but just want to confirm. Did you use Azure Cloudbuilder to create the site?
I recently had a problem with ArcGIS Server reverting from an alias to machine name after restart. ArcGIS components appear to get the machine name property from DNS during installation and sometimes dynamically after server reboot, services restart etc. so I got around this by adding the alias to the server's hosts file (which takes priority over DNS).
Hope this helps.
Craig
I'm struggling with this exact issue after implementing a DNS alias once I already had portal all set. My issue is that I can reach my portal login page using:
dnsalias.domain.org/portal
However, when attempting to log in via SAML I get redirected to:
machinename.domain.org/portal/sharing/rest/oauth2/saml/signin
Here's what I've changed to try getting this working again:
Any advice is gratefully received.