RE: [SOLVED] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

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

 



First, thanks for those of you who responded my question.  Yuppie!!! I know what caused my problem!!! 
It turned out the problem has nothing to do with the way how I declared my VirtualHost containers in httpd.conf.  There was a third party software that we are required to use that was included in the httpd.conf.  Once I deleted that part, the two virtual hosts behaved like I expected.  Of course, now I need to follow the proper procedures/steps to make sure that third party software will work like I expected.  

Maybe now I can get some sleep :-)

Mary




-----Original Message-----
From: Wang, Mary Y 
Sent: Sunday, May 16, 2010 5:58 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

Hi,

I've been struggling with Apache 2 named virtual hosts for a while that I've defined in the httpd.conf.  The second named virtual host never works, it always returns the 404 file not found error.  The DocumentRoot I declared for the second named virtual is correct, because when I put that information in the first named virtual host, it shows up.   After different tests, I've concluded that anything that I put in the DocumentRoot for the second name virtual host just always returns the 404 file not found error.  I even commented out a RewriteRule just to rule of any possibilities, and it still behaves the same.   Has anyone experienced this problem in Apache 2 before ?  Both the named virtual hosts use the same IP address and running on port 80.   Is there something out there that I should look for?  I had no problem in Apache 1.3.7.

Thanks in advance for any inputs.  I thought the migration from 1.3.x to 2 shouldn't take that long, I guess I underestimated it :-(  .

Mary






---------------------------------------------------------------------
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


---------------------------------------------------------------------
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