Re: url resolution wrong
From: Tim (Tim_at_mail.localhost)
Date: Sat, 24 Jan 2004 20:26:56 +1030
On Fri, 23 Jan 2004 21:26:26 -0600,
"Oliver Griffin \"Ollie\"" <email@example.com> wrote:
> Something is really crasy going on with my redhat 7.3 Apache setup.
> I just set this machine up a few days ago.
> If I http://myfile.com it works
> If I http://techniques,com it works
> The DocumentRoot is /var/www/html (This is also the default host
> documentroot for myfile.com)
> The other virtual host has its documentroot being /var/www/html/te
> Everything works fine except when I enter http://myfile.com/te or
> it shows it is trying to access 123.45.678.12te which obviously is a bad
> IP. Why is it doing this?
Show us your configuration files (Apache's, and your hosts file or DNS
records), or at least the portions directly involved with those
settings, or nobody can say. You've got a number of typos in your
message, the chances are that you've not spotted some in your
configuration files. And your examples are going to cause you problems,
use some that aren't, and you're more likely to get things working.
Myfiles.com and techniques.com resolve to real internet addresses, even
if the first one is to a cybersquatter. You're asking for problems
trying to test a system with names that will resolve to outside
resources. There are domains such as .test which are reserved to be
suitable for testing things with (e.g. try one.test and two.test).
Your bogus IP of 123.45.678.12 is going to cause you problems too, the
third quad is too large. Each quad (the digits around the dots) can
range between 0 and 255 (with those two extremes, of 0 and 255, being
reserved for special network functions). If you're playing with
internal addresses, use some of the ones reserved for that purposes
(e.g. 192.168.0.0 to 192.168.255.255 or 10.0.0.0 to 10.255.255.255).
-- My "from" address is totally fake. The reply-to address is real, but may be only temporary. Reply to usenet postings in the same place as you read the message you're replying to. This message was sent without a virus, please delete some files yourself.