I have a Red Hat (4.2) system with Apache 1.1.3 installed. We are using
non-IP virtual hosts. The system was originally set up by a contractor who
is no longer available, so we are trying to do some admin ourselves. I
have UNIX experience, but I'm kind of weak on Linux/apache.
Here is the issue: we had apache running on one IP with 2 web sites. We
recently went through an IP address change. I modified the httpd.conf file
with the new IP address. After the change took place, all requests to our
server landed on the site defined as the Virtual Web site. In the
http.conf file, I found only one VirtualHost defined, and it was this site
that always processed the request, even when the browser requested the
I put in a second virtual host definition that is the same as the
"ServerName", and this seemed to fix the problem.
In Apache 1.1.3, should I need to define a VirtualHost that is the same as
the main server? I was under the impression that the main server (as
defined by 'ServerName' outside of the VirtualHost block) would process all
requests UNLESS they were specifically for a defined virtual host. Any
Also, we may be upgrading soon to Apache 1.3. I understand that I WILL
need a virtual host defined for every site, even the 'main' site. Correct?
Some pieces of my 'http.conf' file (names changed to protect the innocent):
Alias /html /home/httpd/mainsite.com/html/
Alias /images /home/httpd/mainsite.com/html/images/
Alias /html/ /home/httpd/virtualsite1.com/html/
Alias /images/ /home/httpd/virtualsite1.com/html/images/
Posted via CNET Help.com