Re: Weird NameVirtualHost problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 example.com and the IP
Addresses.

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.

solprovider


On 11/2/07, tech1 <tech1@xxxxxxxx> 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux