Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a server with Kloxo and two virtual hosts. They are pointed to the same IP, but a different directory.

Here's the config of virtual host files. They're in different files, and included in the main httpd.conf file. NameVirtualHost *:80 is uncommented.


<VirtualHost *:80>
    DocumentRoot /home/.sites/_default/web
    ScriptAlias /cgi-bin/ /home/.sites/_default/cgi-bin/
    ErrorLog /home/.sites/_default/logs/error_log
    TransferLog /home/.sites/_default/logs/access_log
    <Directory /home/.sites/_default/web>
        Options FollowSymLinks
        Options +Includes +ExecCGI
        AllowOverride All


<VirtualHost *:80>
    DocumentRoot /home/.sites/donkapone/web
    ScriptAlias /cgi-bin/ /home/.sites/donkapone/cgi-bin
    <Directory /home/.sites/donkapone/web>
        Options FollowSymLinks
        Options +Includes +ExecCGI
        AllowOverride All

both of the sites show Kloxo Default Page as an error. Both of the subdomains, when pinged ping

If you are seeing this page, it means that web has not been configured for this domain on this server.

This could be due to the following causes:

Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart.

The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses

If you are seeing this page when you try to access an IP like, then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain.

Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> should mean that pings to the same IP.

I'm guessing that's the root of the problems.

Any idea why does it do that?

share|improve this question

closed as off-topic by HopelessN00b Apr 9 '15 at 19:32

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This looks a lot like a standard Apache config, but I have never used the :80 on the ServerName lines in mine.

The ping thing is normal, because you are using virtual hosts. This means they share the same IP address, so if you use the standard unix ping command that looks up the reverse address, then it will resolve to only one of the names (usually.)

Apache doesn't care about the reverse name, only the forward one.

share|improve this answer

The :80 isn't part of the server name, I'd remove that from the ServerName and ServerAlias values.

ping has nothing to do with your HTTP setup, what you are seeing is effectively the canonical name of the server don't worry about that.

share|improve this answer
I fixed the :80 in Servername and ServerAlias, and restarted apache, but Kloxo is still showing it's Default Page. I've updated the error in the original post. – donkapone Nov 16 '10 at 9:43
How did you include arturas.conf in httpd.conf? – RedGrittyBrick Nov 16 '10 at 10:12
Have you placed a different index.html in each ServerRoot? – RedGrittyBrick Nov 16 '10 at 10:15
It's included like so: Include /etc/httpd/vhost/arturas.conf Include /etc/httpd/vhost/donkapone.conf And yes, two different sites are uploaded to home/.sites/_default/web and to /home/.sites/donkapone/web – donkapone Nov 16 '10 at 10:16
It was working great, when it was only one site - the Kloxo Default Page appeared when I added another Virtual Host. – donkapone Nov 16 '10 at 10:21

As heavily documented, the first-listed virtual host is always the default one when no other virtualhost matches the Host: header.

You are not requesting the ServerName or ServerAlias of the second vhost; hence, the first one is returned.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.