[Mongrel] problem with mongrel/apache2.2.3 and subdomain setup

Rob Sanheim rsanheim at gmail.com
Wed Jan 3 15:23:01 EST 2007


On 1/2/07, Charles Brian Quinn <me at seebq.com> wrote:
> I'd add another:
>
>  <VirtualHost *:80>
> ServerName www.otherdomain.tld
> DocumentRoot /www/otherdomain
> </VirtualHost>
>
> for your main document root, since you're using VirtualHosts.
>
> and make sure that loads last -- this could mean if you're doing something like:
>
> Include /etc/rails/*.conf
>
> in an apache configuration file that you name the files accordingly
> (perhaps 00_my_site.conf and 99_default_vhost.conf)
>
> hope that helps,

Thanks, that led me down the right path.  I needed the main domain
vhost to load first, and I also needed to add NameVirtualHost *:80 to
my main config.  Now it all works.

- Rob


More information about the Mongrel-users mailing list