Fwd: Re: server configuration for local and internet priority

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks again for your suggestion. It works on the linux box, but I get something strange that indicates there is still a configuration problem. When I enter http://xenodochy.org on the windows machine, it returns to me the same directory as when I enter "http://linux";, but the address line says "http://xenodochy.org"; instead of "http://linux";.

(/etc/hosts includes "127.0.0.1 linux xenodochy.org")

When I look at /var/log/httpd/access_log, it shows that the request is coming from the windows machine at 192.168.0.1 and is asking for "http://xenodochy.org";.

192.168.0.1 - - [06/Mar/2004:08:47:27 -0500] "GET / HTTP/1.1" 200 1504 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.50 [en]"
192.168.0.1 - - [06/Mar/2004:08:47:28 -0500] "GET /icons/text.gif HTTP/1.1" 304 0 "http://xenodochy.org/"; "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.50 [en]"
192.168.0.1 - - [06/Mar/2004:08:47:28 -0500] "GET /icons/blank.gif HTTP/1.1" 304 0 "http://xenodochy.org/"; "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.50 [en]"
192.168.0.1 - - [06/Mar/2004:08:47:28 -0500] "GET /icons/folder.gif HTTP/1.1" 304 0 "http://xenodochy.org/"; "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.50 [en]"


Apache appears to be reading and displaying the wrong directory. It's displaying the DocumentRoot directory in the root web site instead of the DocumentRoot directory in the defined VirtualHost.

I've spent a long time searching with google, but I have not found a solution (that I recognize).

Any suggestions as to what may be preventing apache from returning the requested virtual host directory or page?




------- Forwarded message ------- From: "Ralph E. Kenyon, Jr." <diogenes@xxxxxxxxxxx> To: lists-redhat-replies@xxxxxxxxxxxxxxxxxxxxx Subject: Re: server configuration for local and internet priority Date: Thu, 04 Mar 2004 15:35:01 -0500

That did the trick on the Linux machine.
Exactly what I wanted.

Thanks!

Now I can start dismantling the kludgy W2K IIS setup.


On Thu, 04 Mar 2004 14:55:34 -0500, <lists-redhat-replies@xxxxxxxxxxxxxxxxxxxxx> wrote:

i think that your issue is a dns/hostname resolution one.

both xenodochy.org and www.xenodochy.org resolve to 63.246.192.33, so that's where your linux box will try to go by default (regardless of the hostname you enter).

if you put xenodochy.org on the "localhost" (127.0.0.1) line in your /etc/hosts file your machine should then go there (to the local machine) when you enter the xenodochy.org name. it should still go out to the 63.xxx hosted machine when you enter www.xenodochy.org .

[this setup will leave it so that if an external user enters either xenodochy.org or www.xenodochy.org they will (properly) go to yor 63.xxx hosted machine.]

---------- Original Message ----------
From: "Ralph E. Kenyon, Jr." <diogenes@xxxxxxxxxxx>
To: shrike <shrike-list@xxxxxxxxxx>
Date: Thursday, March 04, 2004 02:41:23 PM -0500
Subject: server configuration for local and internet priority

Hi all,

I'm new to linux, and I'm looking for some configuration help.

I have copied one of my domain web pages to my shrike box in
/var/www/html/xenodochy.org, and I have setup a virtual host in
httpd.conf  as xenodochy.org.

<VirtualHost xenodochy.org>
     ServerAdmin webmaster@xxxxxxxxxxxxx
     DocumentRoot /var/www/html/xenodochy.org
     ServerName xenodochy.org
</VirtualHost>

When I type the URL in my browser (Opera), I would like
"http://xenodochy.org"; to show me the local copy from my linux box
and  "http://www.xenodochy.org"; to show me the internet copy.

When I run Opera on the Linux box with http://xenodochy.org, it
takes me  out to the internet rather than to the local copy.

My ISP has two virtual host definitions (with and without the www.)
in  their httpd.conf file.

One complication is my linux box is not my internet gateway.
Because my  satellite service is not supported on Linux, my linux
box has a fixed  local IP and goes through ICS on a W2K machine.
My previous development  was using IIS, but I want to get off IIS
and onto Linux.

Can anyone tell me what configurations I might need to do where so
that my  browser looks for web pages locally before going out to
the internet?  It  should find http://xenodochy.org on the linux
box, but not finding  http://www.xenodochy.org there, it should go
out to the internet.


Thanks for any suggestions you can give me.


--
http://www.xenodochy.org/ralph.html
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

---------- End Original Message ----------






-- http://www.xenodochy.org/ralph.html Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux