Hi, I have done the same thing and now it's WORKING.
Don't know why. I have just switched the order in the httpd.conf file. THANX for the fast and efficient reply, Regards, Arshad ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]> Sent: Friday, July 02, 2004 6:33 PM Subject: Re: [plug] Virtualhost Configuration Problems > I got the same problem before with my virtualhosting, what I did was, I switched > the second company website first, before the first company website, then > restart apache, when everything's working well, I tried changing it back again, > and I didn't have the same problem anymore. I dunno why. > > I don't know if this will work for you, it works for me, you may try it. > I tried putting port 80 after the ipaddress on the NameVirtualhost directive, > e.g. 196.46.1.90:80, though this is optional. > > hth > > > Quoting Arshad Amade - EBS <[EMAIL PROTECTED]>: > > > Hi, > > > > I'm having problems running 2 websites at one IP address, the problem is that > > always that i run http://www.company2.com it points me to the first company > > website. It was working before when i was managing my DNS in the same > > machine, but now our Nameserver is at our ISP. I just dont know what > > happened. > > > > My httpd.conf is: > > > -------------------------------------------------------------------------- ---------------------- > > NameVirtualHost 196.46.1.90 > > > > <VirtualHost 196.46.1.90> > > ServerAdmin [EMAIL PROTECTED] > > DocumentRoot /var/www/html/comp1 > > ServerName www.company1.com > > ErrorLog logs/www.company1.com-error_log > > CustomLog logs/www.company1.com-access_log common > > </VirtualHost> > > > > <VirtualHost 196.46.1.90> > > DocumentRoot /var/www/html/comp2 > > ServerName www.company2.com > > ErrorLog logs/www.company2.com-error_log > > CustomLog logs/www.company2.com-access_log common > > </VirtualHost> > > > -------------------------------------------------------------------------- ---------------------- > > > > Please help me! > > Any help will be grealy apreciated > > > > Regards, > > > > Arshad > > > > > > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > -- > Philippine Linux Users' Group (PLUG) Mailing List > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) > Official Website: http://plug.linux.org.ph > Searchable Archives: http://marc.free.net.ph > . > To leave, go to http://lists.q-linux.com/mailman/listinfo/plug > . > Are you a Linux newbie? To join the newbie list, go to > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie > -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
