Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-09-2012, 10:43 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
linux web server configuration

When i am tried to configure web server then [warn] NameVirtualHost has no VirtualHosts
message appear.

What is the problem???

Please Help
Old 10-09-2012, 12:20 PM   #3
LQ Newbie
Registered: Jul 2010
Distribution: Debian6
Posts: 4

Rep: Reputation: 0
You have to create virtual sites first. For Debian:

sudo nano /etc/apache2/sites-available/<domain name eg>
Copy and paste this text inside nano:
		<VirtualHost *:80>
		ServerAdmin <admin email address>
		ServerName  <domain name eg>
		ServerAlias <domain alias eg>

		DirectoryIndex index.html index.php
		DocumentRoot /home/<your folder for this site eg>

		LogLevel warn
		ErrorLog  /home/<your folder>/log/error.log
		CustomLog /home/<your folder>/log/access.log combined
Copy and paste this text again using domain name for all your other sites/domains you want apache to serve.

Exit and save the file.

Enable virtual sites:
sudo a2ensite <your folder>
Reload apache:
sudo /etc/init.d/apache2 reload

Last edited by thesullster; 10-09-2012 at 12:21 PM.


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
web server configuration in redhat linux ssilayaraja Linux - Networking 3 08-22-2006 12:02 AM
Best Linux distro for Web Server? and configuration too... pulsorock Linux - Enterprise 16 11-30-2005 09:10 AM
web server configuration time112852 Linux - Software 11 09-07-2005 03:06 PM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
web server configuration threize Linux - Networking 1 06-27-2001 01:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 PM.

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