Hello I'm getting this error (NameVirtualHost *:80 has no VirtualHosts) when I try to restart Apache2 on my VPS webserver running Ubuntu 8.10. It was working fine as of Saturday (I did not check it at all yesterday) and suddenly it's not working this morning. I cannot get to my site at all, it just asks me to download a file.
Here's my VH file under sites-enabled:
And my ports.conf:Code:# domain: fixmyinternetnow.com # public: /var/www/public_html/fixmyinternetnow.com/ <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin rob@fixmyinternetnow.com ServerName fixmyinternetnow.com ServerAlias www.fixmyinternetnow.com # Index file and Document Root (where public files are located) DirectoryIndex DocumentRoot /var/www/public_html/fixmyinternetnow.com <Directory /> AllowOverride All </Directory> # Custom log file locations LogLevel warn ErrorLog /var/www/public_html/fixmyinternetnow.com/logs/error.log CustomLog /var/www/public_html/fixmyinternetnow.com/logs/access.log combined </VirtualHost>
Plus the end of my Apache2.conf file:Code:NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule>
I've searched around the forums, but none of the fixes seem to work for me. The weirdest part is it was working fine as of two days ago and I haven't made any changes to the server. I'm also the only one who has access to this server. Let me know if there's any additional info I should post. Thanks in advance!Code:# Include the virtual host configurations: Include /etc/apache2/sites-enabled/ NameVirtualHost *:80 <IfModule mod_ssl.c> NameVirtualHost *:443 </IfModule> ServerName localhost



Adv Reply




Bookmarks