Enonic version: 6.6.2-SNAPSHOT
OS: Mac and Linux
In production I would like to display nice designed error pages, which does not expose any error message to the end user.
However in QA and development I want to continue using the Enonic XP red error page (which contains the error message and stacktrace)
The host in a request can be faked by for instance using /etc/hosts, which I’m doing to have multiple “virtual” hosts on my development laptop.
So instead if want to check use the environment name, cluster name or ip of server instead to determine which error page to show.
I guess I could add some environment name to the site config, but there might be other uses for environment name, cluster name or ip of server in the future. Perhaps when logging stuff.
So is there any way to get environment name, cluster name or ip of server?