[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] include.conf questions (httpd.conf)
- Subject: Re: [cobalt-users] include.conf questions (httpd.conf)
- From: "Paul Mullett" <paul.mullett@xxxxxxxxxxxxxxxxxx>
- Date: Tue Apr 9 04:06:44 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
From: "Gerald Waugh" <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, April 09, 2002 6:34 PM
> On Tue, 09 Apr 2002, Paul Mullett wrote:
> > Hello again,
> >
> > Forget the .htaccess stuff, I've been looking at the other ways of doing
> > this, namely:
> > http://list.cobalt.com/pipermail/cobalt-users/2000-October/024470.html
> >
> > The situation I have is that I have www.domain.com www.domain1.com and
> > www.domain2.com and I want www.domain1.com to go to
www.domain.com/domain1
> > and www.domain2.com point to www.domain.com/domain2 .
> >
> > Using the above method of an extra include.conf included from httpd.conf
I
> > can make 1 extra domain work (eg www.domain1.com now points to
> > www.domain.com/domain1 successfully) but I cannot seem to be able to
add
> > another second domain. I have tried adding in an include2.conf file,
that
> > doesn't seem to work, and I've also tried adding a second entry to
> > include.conf, and that appears to fail too.
> >
>
> If your include.conf has <VirtualHost> containers then just adding another
> <VirtualHost> conatiner with a different whatever/domain2 in the
DocumentRoot
> should work.
> Did you add 'a' records in DNS for both?
>
>
It does indeed, but when I use two <VirtualHost></VirtualHost> containers it
only seems to pay full attention to whichever it encounters first, it then
(strangely) also points www.domain2.com (in the second container) to
www.domain.com/domain1 despite them each having their own document root.
My include.conf looks like this:
<VirtualHost 213.**.**.**>
ServerName domain1.com
ServerAdmin admin
DocumentRoot /home/sites/site1/web/domain1/
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .php3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
<VirtualHost 213.**.**.**>
ServerName domain2.com
ServerAdmin admin
DocumentRoot /home/sites/site1/web/domain2/
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .php3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
With this, both www.domain1.com AND www.domain2.com point to
/home/sites/site1/web/domain1/
Most frustrating, is there anything wrong you can see there?
Thank you.
Paul