Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 setup Ajax Push Engine ( on a CentOS server. I've installed the APE Server and verified that it is running correctly. I setup a subdomain on a separate IP, but I still can't get the javascript to connect. I think I am setting up the virtual host incorrectly, but I'm not completely sure.

<VirtualHost *> 
        ServerAlias * 
        DocumentRoot "/home/domain/public_html/ape/" 

The DocumentRoot is what is confusing me. If is supposed to point to the APE Server at port 443, what would the DocumentRoot be? I have it set to the folder that stores the JS, but it just shows those files in the browser when I try to connect. I tried changing httpd.conf's "Listen" to just the IP of the site and no the IP of the subdomain, but I still didn't see any difference, and this caused httpd to crash about every 30 seconds. I'm hoping I am just making some obvious mistake that I am overlooking.

share|improve this question
up vote 0 down vote accepted

Try this:

open your httpd-vhosts.conf file... I'm not sure where that is located on your computer... I'm using a Mac and for me its under /etc/apache2/extra/httpd-vhosts.conf

look at what NameVirtualHost is set as.

set <VirtualHost> to the same thing... this is what mine looks like:

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "/Library/WebServer/Documents"
<VirtualHost *:80>
   Servername localape
   ServerAlias ape.localape
   ServerAlias *.ape.localape

   DocumentRoot "/Library/WebServer/Documents/APE"

Hope that helps

share|improve this answer

Your Answer


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

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