LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-28-2009, 08:31 AM   #1
Nicolice
LQ Newbie
 
Registered: Oct 2008
Posts: 28

Rep: Reputation: 15
NameVirtualHost *:80 has no Virtual?


I just installed Fedora 11, and followed the tutorial inside howtoforge.com about the perfect web server with ISPConfig 3.

After everything has been installed, I can't access the web panel via the webpage, even with https://localhost:8080, or https://ip:8080 it just won't connect.

So I'm suspecting something wrong with my httpd.conf configuration file...which when I tried to start it...it gave me this error
Code:
Starting httpd: [Mon Jun 29 01:30:24 2009] [warn] NameVirtualHost 127.0.0.1:0 has no VirtualHosts
[Mon Jun 29 01:30:24 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[FAILED]
I'm still new in these configurations, can someone help me to solve it? Thanks!

Here's my httpd.conf, as in attachment.
http://www.savefile.com/files/2140277

Thanks a lot!

Last edited by Nicolice; 06-28-2009 at 12:30 PM.
 
Old 06-28-2009, 11:15 AM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
In my experience, if you are using virtual hosts you will need an entry similar to the following:

Code:
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /www/docs/dummy-host.example.com
    ServerName dummy-host.example.com
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
 
Old 06-28-2009, 12:06 PM   #3
Nicolice
LQ Newbie
 
Registered: Oct 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the reply.

I've copied over the entry, but when I tried to start httpd, it says document root does not exist. Do I need to create those directory manually or copies the existing over?

Last edited by Nicolice; 06-28-2009 at 12:11 PM.
 
Old 06-28-2009, 01:19 PM   #4
arty
Member
 
Registered: Nov 2008
Posts: 66

Rep: Reputation: 17
DocumentRoot is the root directory of your web site
it's the directory that you will place all files that will be accessible through your site(including index.html)
 
Old 06-28-2009, 06:11 PM   #5
Nicolice
LQ Newbie
 
Registered: Oct 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the reply. I haven't created any pages yet but is there any way to temporary creates the DocumentRoot of it? Or should I copy over some files from other place? Thanks.
 
Old 06-29-2009, 01:13 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,352

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The default in F11 is /var/www/html: http://forums.fedoraforum.org/showthread.php?p=1216638
 
Old 06-29-2009, 09:17 AM   #7
Nicolice
LQ Newbie
 
Registered: Oct 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Anyway, thanks for all the help guys, apparently there's indeed some misconfiguration within my httpd.conf...after a search and patiently edit and test...finally I solved it...but there's one other stuff came out tho...

Mods can you please close this thread? Thanks
 
  


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
Apache2 NameVirtualHost not working intramaweb Linux - Server 7 12-12-2007 07:59 AM
passing NameVirtualHost as a variable sunethj Linux - Server 5 05-15-2007 01:51 AM
apache2 NameVirtualHost gabsik Linux - Networking 3 01-18-2007 02:26 PM
NameVirtualHost IP# has no VirtualHosts? DigiCrime Linux - Networking 2 10-11-2004 12:24 AM
Another NameVirtualHost problem somroj Linux - Software 1 09-29-2003 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration