Multiple "ServerName" per VHost?
Solution 1:
Use both the ServerName
and ServerAlias
directives in your virtualhost definition. You would do something like:
<VirtualHost *:80>
Servername wiki.lan
ServerAlias wiki
[...]
</Virtualhost>
See Apache Docs – ServerAlias Directive.
Solution 2:
Add the other names with ServerAlias
.
You can use any of those 2 formats or a mixture:
ServerAlias aaa.example.com bbb.example.com ccc.example.com
ServerAlias ddd.example.com
ServerAlias eee.example.com
ServerAlias fff.example.com
The directive is valid only in VirtualHost section.
See: http://httpd.apache.org/docs/current/mod/core.html#serveralias