title: Apache 2.2 VirtualHosts URL not found
body: <p>I'm hoping you can help. I have an existing Apache 2.2 server which serves a website I maintain. I am attempting to add additional websites for a colleague. Having done so, I get the following when I attempt to access the URL:</p>
  
  <blockquote>
    <p>Not Found The requested URL / was not found on this server.</p>
  </blockquote>
  
  <p>Here's a summary of my httpd-vhosts.conf file. I have three new, roughly identical, hosts that aren't working. Only NDV and the default are working.</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;VirtualHost anycast.ns.cs.boeing.com:80&gt;
          ServerName anycast.ns.cs.boeing.com
          ServerAdmin aodhan.hoffman@boeing.com
          DocumentRoot "/opt/www/anycast"
  
          ScriptAlias /cgi-bin "/opt/www/anycast/cgi-bin/"
          ErrorLog "logs/grant_error_log"
          CustomLog "logs/grant_access_log" common
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
          ServerAdmin aodhan.hoffman@boeing.com
          DocumentRoot "/opt/httpd/manual"
          ServerAlias ntpm-application-01.ns.cs.boeing.com
          ErrorLog "logs/error_log"
          CustomLog "logs/access_log" common
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost *:80&gt;
          ServerAdmin aodhan.hoffman@boeing.com
          DocumentRoot "/opt/www/ndv/html"
          ServerName ndv.web.boeing.com
          ScriptAlias /cgi-bin/ "/opt/www/ndv/cgi-bin/"
          ErrorLog "logs/error_log"
          CustomLog "logs/access_log" common
  &lt;/VirtualHost&gt;
  
  &lt;Directory "/opt/www/ndv/html/" &gt;
          Options Indexes FollowSymLinks Includes 
          AddType text/html .shtml
          AddOutputFilter INCLUDES .shtml 
          Order allow,deny
          Allow from all
  &lt;/Directory&gt;
  
  &lt;Directory "/opt/www/anycast/html/" &gt;
          Options Indexes FollowSymLinks Includes 
          Order allow,deny
          Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Based on the config above, this is what the server is seeing.</p>
  
  <pre><code>$ sudo bin/apachectl -S
  
  VirtualHost configuration:
  wildcard NameVirtualHosts and _default_ servers:
  *:80                   is a NameVirtualHost
           default server ntpm-application-01.ns.cs.boeing.com (/opt/httpd/conf/extra/httpd-vhosts.conf:30)
           port 80 namevhost ntpm-application-01.ns.cs.boeing.com (/opt/httpd/conf/extra/httpd-vhosts.conf:30)
           port 80 namevhost ndv.web.boeing.com (/opt/httpd/conf/extra/httpd-vhosts.conf:39)
           port 80 namevhost anycast.ns.cs.boeing.com (/opt/httpd/conf/extra/httpd-vhosts.conf:48)
           port 80 namevhost ntpget.ns.cs.boeing.com (/opt/httpd/conf/extra/httpd-vhosts.conf:60)
           port 80 namevhost dnsdig.ns.cs.boeing.com (/opt/httpd/conf/extra/httpd-vhosts.conf:70)
  Syntax OK
  </code></pre>