How do I host multiple domains on Ubuntu Server (Hardy Heron)?
- by markle976
I am trying to figure out the best way to host multiple domains on my Ubuntu server. I have tried multiple options, but I can't get everything to work the way I want it to.
I want to be able to add domains without having to restart Apache each time. I tried using mod_vhost_alias (see below), but that maps www.domain.com and domain.com to different folders.
I also need to be able to use mod_rewite to map requests for domain.com/app/* to domain.com/somescript.php
current httpd.conf:
UseCanonicalName Off
VirtualDocumentRoot /var/www/%0
Any thoughts?