Apache defaults to the hostname if the virtual server does not have an entry name but you do have to restart the service if the host name is changed.... BUT the web server which it was hosting would not respond...
IIRC Nginx can use the hostname but you normally define the site name in the server block - it is possible to build a string using the system hostname and use that rather than hard coding it.
Not sure about lighttpd - only hacked it once with pi-hole (and it did not break!).
Statistics: Posted by MiscBits — Wed Jul 31, 2024 5:55 pm