I'm having trouble setting up a sencond site on my apache2
server.
I currently have one site up and running and its even live.
However I have another site I am working on and am trying to host it locally.
I've created a site-available file named newsite with the following
<VirtualHost *:80>
ServerName newsite
ServerAdmin webmaster@localhost
DocumentRoot /var/www/newsite/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/newsite/>
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>
I enable it with a2ensite
newsite
I edit the host file 127.0.0.1 www.newsite.com
I've run a2ensite
newsite
Now when I view the new site it works fine, but when I try view my original site i only get the newsite
If I disable new site (a2dissite newsite) the original site displays fine
Any help would be appreciated