Symptoms
APS Custom UI hangs. In Firebug or Web Console, we can see that failed request uses internal IP of UI node.
Cause
Application UI accesses a resource via link, for example:
GET https://z.lin.cert.apsdemo.org/aps/2/resources/57087c95-a8d1-4a57-9192-4ab4758e1203/vpses/4bdd9c09-0e10-48b6-802f-6980d67568a4
APS Controller replies as follows:
HTTP/1.1 302 Found
Location: /aps/2/resources/4bdd9c09-0e10-48b6-802f-6980d67568a4
It returns relative path, but UI proxy inserts an internal IP of UI node, for example:
HTTP/1.1 302 Found
Location: https://127.0.0.1/aps/2/resources/4bdd9c09-0e10-48b6-802f-6980d67568a4
Browser is trying this url and hangs.
Resolution
Bug will be fixed in OA 6.0.7 for new brands.
For existing brands, add this rule in .branding_htaccess on the branding node:
Header edit Location "(^http[s]?://)([a-zA-Z0-9\.\-]+)" ""
.branding_htaccess config can be found at the branding node by the following path:
/var/www/vhosts/2/{brand webspace id}/webspace/httpsdocs/.branding_htaccess
or
/var/www/vhosts/2/{brand webspace id}/webspace/httpsdocs/{hostname}/.branding_htaccess