How do I host multiple domains on Ubuntu Server (Hardy Heron)?
Posted
by markle976
on Server Fault
See other posts from Server Fault
or by markle976
Published on 2010-04-22T14:57:11Z
Indexed on
2010/04/22
15:03 UTC
Read the original article
Hit count: 222
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?
© Server Fault or respective owner