Re: Fwd: Re: server configuration for local and internet priority
"Ralph E. Kenyon, Jr." <[email protected]> Mon, 08 Mar 2004 11:12:08 -0500
| Newsgroups | gmane.network.tux |
|---|---|
| Organization | Abstract Systems, etc. |
| Message-ID | <[email protected]> |
On Mon, 08 Mar 2004 10:53:39 -0500, Chris Davies <[email protected]> wrote: > On Mon, 2004-03-08 at 10:28, Ralph E. Kenyon, Jr. wrote: >> Linux is Redhat shrike (9) with all up2date. >> Tux is the primary server on port 80 >> Apache is the secondary server on port 8080 >> Apache is setup with a virtual host xenodochy.org pointing to >> /var/www/html/xenodochy. > First, if you are using any of the virtual serving options, > > http://www.redhat.com/docs/manuals/tux/TUX-2.2-Manual/virtual-hosting.html > > mentions that you need to have the directory named > > /var/www/html/xenodochy.org unless you have strip host tail turned on. > > However, I am thinking your problem might be related to the one I > reported Feb 26 -- with apache 1.3.29 (and a few prior versions), I was > not able to get tux to pass a virtual hosting request through to the > backend -- almost as if the host info wasn't being passed in some format > that apache 1.3 could understand. However, Apache 2.0.x seems to have > no issue with it. > > what are your tux settings? how about your apache config -- perhaps > there is something we're both missing in our apache configs. > Thanks! I had found some of that, but the problem is a lack of specific how-to instructions. Further research suggests that I need to turn virtual hosting on in tux, but I don't see how to do that. I've found an explatation of the configuration variable, but no instruction on how or where to set it. It seems like I have to sent "virtual_server" to 1, 2, or 3, but I have been unable to find out how or where to do that. The page says: Most parameters can only be set when TUX is not active. /proc/sys/net/tux Parameters The following parameters are set through /proc/sys/net/tux. But how? What are the steps? What is the syntax? I'm a relative newbie for linux, and I haven't a clue how to do this. > > >> The linux root is obtained by entering http://linux. >> >> Everything appears to work fine using Opera 7.50P2 on the linux machine >> (networked to the windows machine). >> http://www.xenodochy.org takes me to the internet. >> http://xenodochy.org takes me to the local copy on the linux machine. >> >> Using Opera on the windows machine, entering http://xenodochy.org >> actually >> retrieves the content of http://linux, although the address bar shows >> http://xenodochy.org. >> >> The tux log is showing GET / >> The apache access log is showing GET / >> followed by >> GET /icons/blank.gif HTTP/1.1" 304 0 "http://xenodochy.org/" >> (when it's going for the directory information for / (at /var/www/html) >> >> It looks like tux is either not translating the request for >> xenodochy.org >> to directory /var/www/html/xenodochy. >> >> How do I get tux to support the VirtualHost setup in apache? >> >> Any suggestions? >> >> >> ------- Forwarded message ------- >> From: "Ralph E. Kenyon, Jr." <[email protected]> >> To: shrike <[email protected]> >> Subject: Fwd: Re: server configuration for local and internet priority >> Date: Sat, 06 Mar 2004 12:47:55 -0500 >> >> 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." <[email protected]> >> To: [email 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, >> <[email 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." <[email protected]> >> >> To: shrike <[email 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 [email 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 >> >> [email 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/