summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 19:13:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 19:13:15 +0000
commit150040d8af5822a4e16cc4a80bb72e1a60e3df09 (patch)
tree9fd4544f74a024dffdf13f80ee2204824a64d56b
parentSetting ServerAdmin to root@localhost in default sites. (diff)
downloadapache2-150040d8af5822a4e16cc4a80bb72e1a60e3df09.tar.xz
apache2-150040d8af5822a4e16cc4a80bb72e1a60e3df09.zip
Setting example ServerName localhost in default sites.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/config-dir/sites-available/000-default-ssl.conf9
-rw-r--r--debian/config-dir/sites-available/000-default.conf2
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/config-dir/sites-available/000-default-ssl.conf b/debian/config-dir/sites-available/000-default-ssl.conf
index 6f5fe4f..0e32d49 100644
--- a/debian/config-dir/sites-available/000-default-ssl.conf
+++ b/debian/config-dir/sites-available/000-default-ssl.conf
@@ -1,4 +1,13 @@
<VirtualHost *:443>
+ # The ServerName directive sets the request scheme, hostname and port that
+ # the server uses to identify itself. This is used when creating
+ # redirection URLs. In the context of virtual hosts, the ServerName
+ # specifies what hostname must appear in the request's Host: header to
+ # match this virtual host. For the default virtual host (this file) this
+ # value is not decisive as it is used as a last resort host regardless.
+ # However, you must set it for any further virtual host explicitly.
+ ServerName localhost
+
ServerAdmin root@localhost
DocumentRoot /var/www/html
diff --git a/debian/config-dir/sites-available/000-default.conf b/debian/config-dir/sites-available/000-default.conf
index a0ce0c8..c0b99d6 100644
--- a/debian/config-dir/sites-available/000-default.conf
+++ b/debian/config-dir/sites-available/000-default.conf
@@ -6,7 +6,7 @@
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
- #ServerName www.example.com
+ ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/html