httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlo Florendo" <ca...@hq.astra.ph>
Subject [users@httpd] virtual host doesn't show correct site in IE5
Date Tue, 22 Jul 2003 07:44:53 GMT
Hello,

I've set-up 2 IP addresses (via interface aliasing) in one ethernet interface: 192.168.20.2
and 192.168.20.3.   The DNS servers have
mapped 192.168.20.2 to resources.mnl.astra.ph and 192.168.20.3 to training.mnl.astra.ph

Furthermore, the httpd server was configured to that it binds itself to listen to both 192.168.20.2
and 192.168.20.3.

The httpd server is configured with one virtual host (in addition to the non-virtual host).
 The following lines show the relevant
directives in the httpd.conf file.

Listen 192.168.20.2:80
Listen 192.168.20.3:80

ServerName resources.mnl.astra.ph:80

DocumentRoot /var/www/html

<VirtualHost 192.168.20.3>
    DocumentRoot /var/www/training/
    ServerName training.mnl.astra.ph
</VirtualHost>

When I use IE5 in machine A to access the site resources.mnl.astra.ph (192.168.20.2), I am
(incorrectly) shown the index.html page
of training.mnl.astra.ph (192.168.20.3)

However, if I use IE6 in Machine B to access the 2 sites, I am given the expected results
(i.e. the index.html corresponding to each
of the 2 sites appears as expected.)

I assumed that it's probably the IE cache that's causing the problem so I tried to verify
whether IE5 actually contacts the httpd
server when I type the sitename of the virtual host (training.mnl.astra.ph) in the URL bar.
 Interestingly enough, the request was
captured in the log so I concluded that, please correct me if I'm wrong, IE didn't go through
its cache when it retrieved the web
contents.

The following is the log entry in the access_log file of the machine that connected to the
virtual host (training.mnl.astra.ph)
using IE6.

192.168.20.28 - - [22/Jul/2003:15:05:24 +0800] "GET / HTTP/1.1" 200 809 "-" "Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0)"


The following is the log entry for the machine that connects to the virtual host (training.mnl.astra.ph)
using IE5.

192.168.20.32 - - [22/Jul/2003:15:05:42 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/4.0 (compatible;
MSIE 5.01; Windows NT 5.0)"

The first log entry corresponded to the correct access (i.e. I accessed training.hq.astra.ph
and I got it)

The second log entry corresponded to the unexpected access (i.e. I accessed training.hq.astra.ph
but I got resources.hq.astra.ph)

I have  httpd-2.0.40-8 under Redhat Linux 8.0 with kernel-2.4.18-14 in my system.

My question thus, are:

Why was the index.html file for the non-virtual host (resoures.mnl.astra.ph) retrieved when
I tried to access the virtual host
(training.mnl.astra.ph)?

If IE uses its cache, why is there a log entry in access_log?


Thank you very much.

Best Regards,

Carlo
------
Carlo Florendo
Astra Philippines Inc.
URL: www.hq.astra.ph/resources













I've configured some one virtual host with our apache server but I don't get the correct version
websites to

I've been running apache httpd-2.0.40-8 under Redhat Linux kernel-2.4.18-14

---------
Carlo Florendo
Astra (Philippines), Inc.
Email: carlo@astra.ph
Web: http://www.astra.ph



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message