Multiple Apps with own domain name?

6 views
Skip to first unread message

ybother

unread,
Sep 15, 2008, 5:52:27 AM9/15/08
to Phusion Passenger Discussions
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 read http://articles.slicehost.com/2008/5/28/how-to-serve-multiple-domains.
This says to add multiple virtual host to apache. that doesn't work.
Anyone has any ideas?

Joshua S

unread,
Sep 17, 2008, 1:27:12 PM9/17/08
to Phusion Passenger Discussions
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.
Reply all
Reply to author
Forward
0 new messages