I'd like to use one VirtualServer for both www.example.com and example.com. Is this possible? Can I at least have one reference another?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

You can use the ServerAlias directive:

<VirtualHost *>
    ServerName example.com
    ServerAlias www.example.com
    ServerAlias foo.example.com
    ...
</VirtualHost>
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.