For each app setup a virtual host and put the domain for the app in
the ServerName directive and point DocumentRoot at each app.
<VirtualHost *:80>
ServerName
foo.com
DocumentRoot /var/www/sites/foo/public
</VirtualHost>
<VirtualHost *:80>
ServerName
bar.com
DocumentRoot /var/www/sites/bar/public
</VirtualHost>
On Sep 15, 4:52 am, ybother <
ZWen...@gmail.com> wrote:
> Hi,
>
> I was researching how to host multiple domain names on my slicehost
> slice. I have already setup my DNS.
> But what I could find so far is that I can host multiple apps under
> their own directory but not their domain names.
>
> <VirtualHost *:80>
> ....
> RailsBaseURI /app1
> RailsBaseURI /app2
> RailsBaseURI /app3
> </VirtualHost>
>
> I also readhttp://
articles.slicehost.com/2008/5/28/how-to-serve-multiple-domains.