Apache, Virtual Hosts, Linux hosts file
Robert Brockway
rbrockway-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
Mon Mar 28 07:40:05 UTC 2005
On Sun, 27 Mar 2005, Stephen wrote:
> I have a Linux box (Mandrake 10.1) running Apache 2.0.
>
> I am using it for testing of PHP-MySQL scripts.
>
> I have it working, but I had to map the virtual urls to the Linux box's ip
> address in the Linux hosts file.
If you are using name based virtual hosts (almost certainly the case) then
this is working correctly. Apache figures out which virtual host you want
based on the information passed to it in the HTTP header (specifically,
the site that the user wants to see).
Rob
--
Robert Brockway B.Sc.
Senior Technical Consultant, OpenTrend Solutions Ltd.
Phone: 416-669-3073 Email: rbrockway-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org http://www.opentrend.net
OpenTrend Solutions: Reliable, secure solutions to real world problems.
Contributing Member of Software in the Public Interest (http://www.spi-inc.org)
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list