Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-25-2005, 10:00 AM   #1
LQ Newbie
Registered: Jan 2005
Location: England
Distribution: Debian
Posts: 3

Rep: Reputation: 0
VirtualHost Apache 2 Problem


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 has no VirtualHosts
error once i run the apache2ctl config test.

Here is the config file that seems to cause the error:


DocumentRoot /var/www/
ScriptAlias /cgi-bin/ /var/www/
<Directory "/var/www/">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/
LogLevel warn
CustomLog /var/log/apache2/ 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 ''.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache VirtualHost Redirect Problem... SiLiCoN Linux - Networking 5 05-03-2005 08:41 AM
Apache 2 VirtualHost woes, permissions problem, just can't work it out. utow Linux - Software 2 04-19-2005 01:48 PM
Apache - Problem when configure VirtualHost b:z Linux - Networking 17 04-07-2005 02:44 AM
Apache: Virtualhost configuration problem deepika Linux - Software 3 08-12-2003 10:13 AM
Help with Apache <VirtualHost> please. smakkythecamel Linux - Networking 2 06-12-2003 07:15 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration