From 2fbf9e1e333fea5a1f77a38987e40f71fc294508 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Sun, 8 Nov 2020 02:53:59 -0800 Subject: [PATCH] Set "ServerName" in /etc/apache2/apache2.conf. --- data/notes/mail_web_git_server.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/notes/mail_web_git_server.md b/data/notes/mail_web_git_server.md index ac1dd91..c298d14 100644 --- a/data/notes/mail_web_git_server.md +++ b/data/notes/mail_web_git_server.md @@ -41,9 +41,6 @@ etc in the examples. # TODO List # - - Set hostname to `sgk-main-2020` and ensure Apache recognizes it as the - ServerName (see: `systemctl status apache2`). - - Setup SSL with automatic certificate renewal. - Find a reliable way to alert me when renewal fails. @@ -116,6 +113,9 @@ Install Apache2. apt-get install apache2 +If not already defined elsewhere, add a "ServerName 127.0.0.1" to the bottom of +`/etc/apache2/apache2.conf`, or whatever is appropriate. + Since we use `/srv` instead of `/var/www`, edit `/etc/apache2/apache2.conf` to comment out the `` entry for `/var/www` and replace it with this: -- 2.20.1