'Is there a predefined Apache conf Variable for the local hostname?

I have an Apache web server deployment with multiple web servers.

The configurations are almost identical. They could be completely identical if I could set variable to the name of the host on which Apache is running (currently, I set that with a Define directive).

Is there some way of getting the local hostname in an Apache configuration file?

I've tried searching but "hostname" is commonly interpreted as the web server name (ServerName) so those are the not-relevant-here results I get



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source