Merge pull request #372 from cytopia/documentation-vhost-gen

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 14:39:49 +02:00 committed by GitHub
commit f10e51dd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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__"