[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Speaking of Apache
- To: "Linux-IL Mailing list" <linux-il(at-nospam)cs.huji.ac.il>
- Subject: Speaking of Apache
- From: "Oded Arbel" <oded(at-nospam)geek.co.il>
- Date: Sun, 11 Nov 2001 17:59:56 +0200
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Hi List.
Speaking of apache - here's something I'm tangling for quite a while and
finally I've figured it out, so I wanted to let you know incase someone else
is having difficulties with the same thing :
Ever since I upgraded from apache 1.3.19, I couldn't get the virtual hosts
to work (that is - virtual named hosts. don't know about virtual IP hosts).
my configuration hasn't changed, but all of a sudden only the main server
worked.
My configuration called a NameVirtualHost with a name, not an IP (since I
use dialup ISDN, and my IP tend to change from time to time). apparently,
the problem was that I had the same name declared in /etc/hosts with an
internal LAN IP (192.168.0.1) and so apache resolved the virtual host to the
internal interface and apparently refused to serve the virtual hosts to
requests on the external interface. I'm not sure what happened - did apache
1.3.19 just ignored /etc/hosts ? or does apache 1.3.20 and up serves virtual
hosts only coming on the IP it resolved the NameVirtualHost to, while before
it served virtual hosts on the interfaces it bounded to ?
anyway - the solution is simple : either make sure that the NameVirtualHost
directive resolves to the IP incoming requests will use, or simply
NameVirtualHost *
and use
<VirtualHost *>
for the virtual hosts declerations.
Oded
--
Q: How many Microsoft vice presidents does it take to change a light bulb?
A: Eight. One to work the light bulb, and seven to make sure Microsoft gets
US$2 for every light bulb ever changed anywhere in the world.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il