Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a super simple Apache setup on a SUSE box that is giving me the error in the title. Any ideas what it could be? I have checked all the conf files and found no duplicate NameVirtualHost directives anywhere...

My listen.conf file looks like this (some goodies ommitted):

NameVirtualHost *:80
NameVirtualHost *:443

and my vhost.conf file looks like this (some goodies ommitted):

<VirtualHost *:443>
        ServerName subdomain.somedomain.com
        ## OTHER STUFF ##
</VirtualHost>

<VirtualHost *:443>
        ServerName anothersubdomain.somedomain.com
        ## OTHER STUFF ##
</VirtualHost>

<VirtualHost *:80>
        ServerName someotherserver.somedomain.com
        ## OTHER STUFF ##
</VirtualHost>
share|improve this question
2  
This is totaly imcomplete for us to help you. Have you some <VirtualHost> directive ? Please paste a more complete example of your configuration. You really probably don't need NameVirtualHost if you use * as address –  radius Jun 24 '09 at 21:13
    
The formatting got a bit messed up. Reformatted virtual host directives. –  Anonymous Jun 24 '09 at 23:02

2 Answers 2

It looks like you need to enclose your ServerName somedomain.com ## OTHER STUFF ## inside

<VirtualHost *:80>
</VirtualHost>

tags. The error is saying that you have no virtual hosts defined for port 80 and 443. Change the *:80 to *:443 for an ssl host.

share|improve this answer

Does your vhost.conf file look like that, or like this:

<VirtualHost *:80>
    ServerAdmin email@address.com

    ServerName subdomain.somedomain.com

    # blah blah
</VirtualHost>

You need those VirtualHost tags set to the correct port.

Failing that, are you sure httpd.conf is calling vhosts.conf ?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.