I have two virtual hosts set-up and working at home right now.  The 
first one is this:

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "/var/www/html/"
        Alias /filesystem /
        RewriteEngine On
        RewriteCond %{HTTP_USER_AGENT}  MSIE.6
        RewriteRule .m?html$ http://localhost/IE6.htm        [L]
</VirtualHost>

The second one is a ruby on rails site.  I put both these in a while 
ago, and went to add a third one today since as far as I can remember, 
and AFAICT looking at the docs, it was as simple as this:

<VirtualHost *:80>
    ServerName dev.docsearch.net
    DocumentRoot "/var/www/html/searchtest/mirror/"
</VirtualHost>

Then I restarted apache.  However, no matter what directory I point 
this to (including the ones in the other Virtual hosts directives, I 
get an "Address not found" error from the browser.  Strangely, if I 
move the *exact same DocumentRoot line* into one of the working 
VirtualHosts, that directory works.  In other words THERE ARE NO 
SPELLING ERRORS OR MISTAKES IN THE PATHS, ETC.  And no typos in the nav 
bar either.  Promise.

Using apachectl -S shows "port 80 namevhost dev.docsearch.net ... 
Syntax OK"

There is no output in either the access or error log.  What have I 
missed?  Why is the configuration above not sufficient?

ps. Server version: Apache/2.2.10 (Unix)



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to