Fix #362 - Document how to add multiple server names for Apache 2.2 and Apache 2.4

This commit is contained in:
cytopia 2018-09-05 08:51:08 +02:00
parent 0b0462f8d6
commit 359eb5990d
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -237,7 +237,7 @@ here).
__CUSTOM__
</VirtualHost>
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: |
<VirtualHost __DEFAULT_VHOST__:__PORT__>
ServerName __VHOST_NAME__
ServerName www.__VHOST_NAME__
ServerAlias www.__VHOST_NAME__
CustomLog "__ACCESS_LOG__" combined
ErrorLog "__ERROR_LOG__"
@ -314,7 +314,7 @@ here).
__CUSTOM__
</VirtualHost>
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: |
<VirtualHost __DEFAULT_VHOST__:__PORT__>
ServerName __VHOST_NAME__
ServerName *.__VHOST_NAME__
ServerAlias *.__VHOST_NAME__
CustomLog "__ACCESS_LOG__" combined
ErrorLog "__ERROR_LOG__"