LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NameVirtualHost *:80 has no Virtual? (https://www.linuxquestions.org/questions/linux-server-73/namevirtualhost-%2A-80-has-no-virtual-736189/)

Nicolice 06-28-2009 08:31 AM

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!

harry edwards 06-28-2009 11:15 AM

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>


Nicolice 06-28-2009 12:06 PM

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?

arty 06-28-2009 01:19 PM

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)

Nicolice 06-28-2009 06:11 PM

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.

chrism01 06-29-2009 01:13 AM

The default in F11 is /var/www/html: http://forums.fedoraforum.org/showthread.php?p=1216638

Nicolice 06-29-2009 09:17 AM

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 :)


All times are GMT -5. The time now is 11:22 PM.