LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-09-2012, 11:43 AM   #1
rasel89
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 127.0.0.1:80 has no VirtualHosts
message appear.

What is the problem???

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

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

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

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

		LogLevel warn
		ErrorLog  /home/<your folder>/log/error.log
		CustomLog /home/<your folder>/log/access.log combined
		</VirtualHost>
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:
Code:
sudo a2ensite <your folder>
Reload apache:
Code:
sudo /etc/init.d/apache2 reload

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


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


All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration