Hello based on this doc:
I cannot understand how/where to insert the DT_CUSTOM_PROP on Tomcat runninx on linux System.
Do someone have already done this? Can you guide me to do so?
Solved! Go to Solution.
If this is a standard tomcat and you are starting it with the catalina.sh startup script, just put it in the $CATALINA_HOME/bin/setenv.sh script (or create it).
Don't forget to export the variables, for example:
Sure I do 🙂
However, it depends on your Apache Web Server distribution and how you start the apache process. Typically in Linux distributions, you will have to set it in the envvars file in your apache config directory or in the bin directory as they start it with the apachectl wrapper script.
If you start it directly by running the binary httpd, then you will have to do it in your script.
As I wrote - it works even for vanilla installation. If you are starting it with apachectl, then you can put it into envvars file. If you are starting the httpd binary directly, then you will have to find a place where it fits you best.