httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] Weird NameVirtualHost problem
Date Fri, 02 Nov 2007 18:41:54 GMT
1. Which VirtualHosts work should change when you change the order of
the entries.  Are you certain you are editing the correct
configuration file?  Rename the configuration file and restart the
server to verify.  Apache httpd will error without the configuration
file.  If the server starts properly, check your init scripts for the
-f option.

2. Do approximately the same number of entries work?  What OS are you
using?  VirtualHosts can require file handles, especially with log
files specific to each virtual host; did the server exceed its limit?

3. Maybe a typo in httpd.conf.  Please post the NameVirtualHost and a
few <VirtualHost> sections, especially the last working one and the
first broken one.  You can change the severs to and the IP

For easier configuration and less chance of accidentally destroying
the main configuration file, you can replace the <VirtualHost>
sections with
  Include conf/virtualhosts.conf
and put all the <VirtualHost> entries in the new file.


On 11/2/07, tech1 <> wrote:
> I'm running apache 1.3 on a FreeBSD box. I've just started using
> NameVirtualHosts for about 100 web sites. There are other web sites on the
> server using individual IP addresses. The <VirtualHost IP.IP.IP.IP>
> containers are all identical except for the info pertinent to each domain
> name and directory, they were ALL generated by a script, including the
> "old" ones. I've tested them and they are accurate. I rearranged the list
> in the conf file to make sure there wasn't an issue with one VirtualHost
> container. The problem: the first 10 or so that I set up 2 months ago work
> just fine, anything added after that doesn't work at all. I've checked DNS
> on the names that aren't working, and I've also run an 'httpd -S' and can
> see all of the NameVirtualHost domains with no errors. I've restarted the
> server and apache multiple times. I can't get anything other than the first
> batch to work.
> I don't know what else to do.... I thought maybe it was a DNS cache related
> thing so I waited a couple days to see if they'd kick in. I tried removing
> the whole NameVirtualHost block and restarting the server, then putting it
> all back and restarting again. I tried rearranging them all so that others
> would be listed before the ones that work. Nothing I've done makes any
> difference.
> I don't want to "waste" 100 IP addresses, anyone have any ideas or
> suggestions? Any other places I might look?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message