I'm a newbie to Linux and getting a bit confused about something. In apache 2, in the /etc/apache2/sites-avaliable/enabled dirs, are there meant to be a file for each website that you set up, or should there be only 1 file for all of the websites?
I have the latter, and after setting up 1 site that works perfectly fine, i get a
[warn] NameVirtualHost xxx.xxx.xxx.xxx:80 has no VirtualHosts
error once i run the apache2ctl config test.
Here is the config file that seems to cause the error:
ScriptAlias /cgi-bin/ /var/www/shop.domain.co.uk/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
CustomLog /var/log/apache2/shop.domain.co.uk/access.log combined
Can anyone see any problems with this file as i cant and especially as i copied this file from the one that works and have just edited it where it says 'shop.domain.co.uk'.