Skip to topic | Skip to bottom
Search:
Home

Chris and Janet's website

Home


Start of topic | Skip to actions
To have a single instance of apache serve two domain names (with separate web pages) use virtual hosts:
<VirtualHost *>
...
ServerName www.thayersfarm.com
ServerAlias thayersfarm.com *.thayersfarm.com 
DocumentRoot /var/www/thayersfarm/
...
</VirtualHost>

<VirtualHost *>
...
ServerName www.carmarthenshirehistorian.org
ServerAlias carmarthenshirehistorian.org *.carmarthenshirehistorian.org
DocumentRoot /var/www/historian/
...
</VirtualHost>

to top

You are here: Home > WebLeftBar > TechStuff > Apache

to top