Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
server configuration for local and internet priority

server configuration for local and internet priority

2004-03-06       - By Ralph E. Kenyon, Jr.

 Back
Reply:     1     2  

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@(protected)>
To: lists-redhat-replies@(protected)
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@(protected)> 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@(protected)>
>> To: shrike <shrike-list@(protected)>
>> 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@(protected)
>>      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@(protected)
>> 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@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list



Earn $52 per hosting referral at Lunarpages.