Getting my site live

April 4, 2014 1.2k views
I sent a ticket for this, but I promise to post the solution. I re-entered the a2ensite command and got the message site is already enabled. NameVirtualHost *:80 file are OK? Server Admin Server Name Server Alias DocumentRoot /var/www/ error logs /var/www/mysite/logs/error.log #Possible Values include: debug, info, notice, warn, error, crit, #alert, emerg. Log Leve warn Custom Log /var/www/mysite/logs/access.log combined I can't see my content with my IP address - I get a 404 message and when I enter my domain, I get a server error I was able to see my content before I set up Virtual server using my IP address Any suggestions?
1 Answer
Try replacing it with the following and then restarting/reloading Apache:
<VirtualHost *:80>

DocumentRoot /var/www/

ErrorLog /var/www/mysite/logs/error.log
CustomLog /var/www/mysite/logs/access.log combined

Does that fix it?
Have another answer? Share your knowledge.