Fixing the E_PROXY_RAP_ACCESSDENIED error

this is based on the recommendation from @dbungert , to resolve the redirection using the FQDN first before checking the ip address. As the ip address found is the internal ip, that causes this Resources Access Denied error.