Issue
- If we define a context other than
ROOTin our portal, for example myportal, the Glowroot administration pages are not displayed or are displayed with visual errors.
Environment
- Liferay DXP 2023.Q4
Resolution
-
Currently, to use Glowroot with a custom context other than
ROOT, it is necessary to apply these settings:- Edit
$LIFERAY_HOME/glowroot/admin.jsonand specify the contextPath:
...
"web": {
"port": 4000,
"bindAddress": "127.0.0.1",
"contextPath": "/myportal/o/glowroot",
"sessionTimeoutMinutes": 30,
"sessionCookieName": "GLOWROOT_SESSION_ID"
},
... -
Inside
$LIFERAY_HOME/osgi/configs, it is necessary to add the configuration filecom.liferay.glowroot.proxy.internal.servlet.GlowrootProxyServlet.configindicating the contextPath (it will be necessary to restart the server for the configuration to take effect), as an example:servlet.init.targetUri="http://localhost:4000/myportal/o/glowroot"
- Edit
Additional Information