[lug] Multiple Domains - Apache
Rob Nagler
nagler at bivio.biz
Tue Apr 29 08:10:04 MDT 2008
Sean Reifschneider writes:
> See the Apache documentation for ServerAlias for more information.
Here's what we do, which works fine:
NameVirtualHost *
<VirtualHost *>
ServerName server99.bivio.biz
bla bla
</VirtualHost>
<VirtualHost *>
ServerName www.arastra.com
bla bla
</VirtualHost>
<VirtualHost *>
ServerName www.bivio.org
bla bla
</VirtualHost>
<VirtualHost *>
ServerName www.viarob.com
bla bla
</VirtualHost>
The first VirtualHost prevents people from accessing the system by IP
address or even by server99.bivio.biz.
If you need to do SSL, you do something like this:
<VirtualHost secure.isto.org:443>
ServerName secure.isto.org
</VirtualHost>
secure.isto.org has its own IP address, which is different from
server99.bivio.biz's.
Rob
More information about the LUG
mailing list