From 359eb5990d32a80797912e80dac6430e71a02326 Mon Sep 17 00:00:00 2001 From: cytopia Date: Wed, 5 Sep 2018 08:51:08 +0200 Subject: [PATCH] Fix #362 - Document how to add multiple server names for Apache 2.2 and Apache 2.4 --- docs/vhost-gen/example-add-subdomains.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/vhost-gen/example-add-subdomains.rst b/docs/vhost-gen/example-add-subdomains.rst index f049b10e..3b9f1e00 100644 --- a/docs/vhost-gen/example-add-subdomains.rst +++ b/docs/vhost-gen/example-add-subdomains.rst @@ -237,7 +237,7 @@ here). __CUSTOM__ -All you will have to do, is to add another ``ServerName`` directive: +All you will have to do, is to add a``ServerAlias`` directive: .. code-block:: yaml :caption: /home/user/devilbox/data/www/project-1/.devilbox/apache22.yml @@ -246,7 +246,7 @@ All you will have to do, is to add another ``ServerName`` directive: vhost: | ServerName __VHOST_NAME__ - ServerName www.__VHOST_NAME__ + ServerAlias www.__VHOST_NAME__ CustomLog "__ACCESS_LOG__" combined ErrorLog "__ERROR_LOG__" @@ -314,7 +314,7 @@ here). __CUSTOM__ -All you will have to do, is to add another ``ServerName`` directive which does catch-all: +All you will have to do, is to add a ``ServerAlias`` directive which does catch-all: .. code-block:: yaml :caption: /home/user/devilbox/data/www/project-1/.devilbox/apache22.yml @@ -323,7 +323,7 @@ All you will have to do, is to add another ``ServerName`` directive which does c vhost: | ServerName __VHOST_NAME__ - ServerName *.__VHOST_NAME__ + ServerAlias *.__VHOST_NAME__ CustomLog "__ACCESS_LOG__" combined ErrorLog "__ERROR_LOG__"