mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-18 02:40:04 +00:00
Fix #362 - Document how to add multiple server names for Apache 2.2 and Apache 2.4
This commit is contained in:
parent
0b0462f8d6
commit
359eb5990d
@ -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__"
|
||||
|
Loading…
Reference in New Issue
Block a user