Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4825

Raspberry Pi OS • Re: Changing Hostname after completing OS and app development

$
0
0
... BUT the web server which it was hosting would not respond...
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.

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



Viewing all articles
Browse latest Browse all 4825

Trending Articles