I have a ubuntu server running apache2 and I am trying to set up two web sites
My apache2ctl -S shows:
is a NameVirtualHost
default server mtzion.mtzionchinagrove.com (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost mtzion.mtzionchinagrove.com (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost mtzionchinagrove.com (/etc/apache2/sites-enabled/mtzion:1)
port 80 namevhost onebody.com (/etc/apache2/sites-enabled/onebody:1)
Syntax OK
my sites enabled directory has in 000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/apps/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
in my first vhost called onebody:
<VirtualHost *:80>
ServerName onebody.com
ServerAlias
www.onebody.com
DocumentRoot /var/www/apps/onebody/current/public
</VirtualHost>
In my other vhost called mtzion:
<VirtualHost *:80>
ServerName mtzionchinagrove.com
ServerAlias
www.mtzionchinagrove.com
DocumentRoot /var/www/mtzion
</VirtualHost>
This was working before I added the second vhost
What Am I doing wrong?
Tom