Apache vhosts
James McDonald
james
Thu Mar 1 16:48:11 PST 2007
David Bandel wrote:
> Folks,
>
> I have several apache servers running vhosts just fine. But one
> server is giving me fits and I can't seem to find the difference, but
> the vhosts just never get accessed.
>
> Output from apache -S:
>
> mx1:/etc/openadmin# apache -S
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> _default_:* www.americanschool.edu.pa (/etc/apache/httpd.conf:1050)
> *:80 is a NameVirtualHost
> default server www.americanschool.edu.pa
> (/etc/openadmin/httpd-school.conf:2)
> port 80 namevhost www.americanschool.edu.pa
> (/etc/openadmin/httpd-school.conf:2)
> port 80 namevhost
> openadmin.americanschool.edu.pa (/etc/openadmin/httpd-school.conf:8)
> port 80 namevhost teacher.americanschool.edu.pa
> (/etc/openadmin/httpd-school.conf:37)
> port 80 namevhost padre.americanschool.edu.pa
> (/etc/openadmin/httpd-school.conf:66)
>
>
Make sure your default is listed before the other vhosts. I found that
if your include statement is before the default you get a weird result.
However I'm not entirely sure if this would be your problem.
More information about the Linux-users
mailing list