LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: 0
VirtualHost Apache 2 Problem


Hi,

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
Quote:
[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:

Quote:
NameVirtualHost xxx.xxx.xxx.xxx:80

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName shop.domain.co.uk
ServerAdmin support@domain.com
DocumentRoot /var/www/shop.domain.co.uk
ScriptAlias /cgi-bin/ /var/www/shop.domain.co.uk/cgi-bin/
<Directory "/var/www/shop.domain.co.uk/cgi-bin/">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/shop.domain.co.uk/error.log
LogLevel warn
CustomLog /var/log/apache2/shop.domain.co.uk/access.log combined
</VirtualHost>
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'.
 
  


Reply


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


All times are GMT -5. The time now is 09:43 AM.

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