[NTLUG:Discuss] Apache vhost configuration question
m m
llliiilll at hotmail.com
Mon Jul 24 16:34:55 CDT 2000
>From: Cameron <hrothgar at endor.hsutx.edu>
>: Try this:
>:
>: NameVirtualHost 129.107.56.23
>:
>: <VirtualHost jchsu.org>
>: ServerAdmin webmaster at jchsu.org
>: DocumentRoot /www/jchsu.org
>: ServerName jchsu.org
>: ErrorLog /var/log/httpd/jchsu.error_log
>: TransferLog /var/log/httpd/jchsu.access_log
>: <Directory /www/jchsu.org>
>: Options Includes Indexes FollowSymLinks
>: AllowOverride FileInfo AuthConfig Limit
>: </Directory>
>: </VirtualHost>
>:
>: <VirtualHost hsuhome.com>
...
snip
...
>: </VirtualHost>
>:
this configuration will result as the following message when restart httpd:
(if you read my last mail carefully, you will see it)
...[warn] VirtualHost jchsu.org:80 overlap with VirtualHost hsuhome.com:80
the first has precedence, perhaps you need a NameVietualHost directive.
>: You might also want to add www.hsuhome.com and stuff. because they will
>not
>: be "caught".
>:
>: greg
>
>Greg is on the right track here. you will want to add:
>
> ServerAlias www.jchsu.org
do you mean add in the <VirtualHost> directive? yes. I did. same problem.
>
>Also, the <Directory> tags are irrelevent, as i mentioned before.
>without explicitly stating the Directory, apache defaults to the
>DocumentRoot, so having the <Directory> tags is redundant in this
>situation.
I do take the <Directoty> directory off, (that is what I began with) same
problem!
in other words, I have tried: (with/without <directory>, ServerAlias and
Bind set)
(1)
NameVirtualHost 129.107.56.23
<VirtualHost 129.107.56.23>
...
ServerName jchsu.org
...
</VirtualHost>
<VirtualHost 129.107.56.23>
...
ServerName hsuhome.org
...
</VirtualHost>
AND
(2)
NameVirtualHost 129.107.56.23
<VirtualHost jchsu.org>
...
ServerName jchsu.org
...
</VirtualHost>
<VirtualHost hsuhome.org>
...
ServerName hsuhome.org
...
</VirtualHost>
result (1) goes to root Documentroot index file.
result (2) first one (jchsu.org) precede the second one (hsuhome.com).
MatHat said:
"... Do you have the "Bind"
directive sset? Also I never saw a responce about the DNS entries, are
the domains set up properly in DNS? If not, try adding them to the
/etc/hosts file."
I have tried both-- "Bind" directive set and not set.
I do have those zone file. but in the dns server box. I wonder I need add
them in /etc/host file? (the reason is if I just have one vhost on it, it
works fine. no matter which one.) if I do, which box? DNS server box or
Apache server box?
>--
>cameron
>
>_______________________________________________
>http://ntlug.org/mailman/listinfo/discuss
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
More information about the Discuss
mailing list