Hi Zach,
For getting name based vhosts to work properly you should use
NameVirtualHost.
e.g.
NameVirtualHost *:80
VirtualHost *:80
ServerName bach.jesujuva.org
DocumentRoot /var/www/bach
/VirtualHost
On Fri, 13 Feb 2009, Zach Uram wrote:
Hi,
I added name based vhosts to my
Hi Zach,
My current configuration of name based vhost file is restricted to one
file (instead of multiples, like yours).
You could put al your vhosts in one file, e.g.:
#cat /etc/apache2/sites-available/default
NameVirtualHost *:80
VirtualHost *:80
ServerAlias bach.jesujuva.org
Zach Uram wrote:
Hi,
I added name based vhosts to my Apache2 install on Debian lenny, but
now when I go to my site:
http://www.jesujuva.org or http://jesujuva.org instead of serving up
/var/www/index.html it serves /var/www/bach/index.html ! Here are my
files:
debian:/etc/apache2# ls
I was able to get my name based virtual hosts everything working
correctly by making 2 files:
/etc/apache2/sites-available/000_default (my defaults)
/etc/apache2/sites-available/001_default (my vhosts)
Now it works as I expected :)
http://www.jesujuva.org or http://jesujuva.org serves
Hi,
I added name based vhosts to my Apache2 install on Debian lenny, but
now when I go to my site:
http://www.jesujuva.org or http://jesujuva.org instead of serving up
/var/www/index.html it serves /var/www/bach/index.html ! Here are my
files:
debian:/etc/apache2# ls sites-available/
bach darcs
5 matches
Mail list logo