Article delegate-en/4239 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A4235@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Reverse Proxy question
29 Nov 2008 17:32:26 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


In message <_A4235@delegate-en.ML_> on 11/30/08(00:14:20)
you Jeff <pyqhqbdyi-qjyh54prmtxr.ml@ml.delegate.org> wrote:
 |My configuration parameters look as follows:
 |win-dg.exe -P80 SERVER=http MOUNT="/* http://172.20.5.115/* MOUNT="/*
 |http://www.news24.com/* avhost=news24.local" -f ADMIN=jeff@localhost -v
 |
 |So what happens is, when a user navigates to 172.20.5.129 (localhost) from
 |the network using the IP only , they are served the page at www.news24.com.
 |If the user uses http://news24.local from the LAN, they get the
 |www.news24.com page as well. If I switch the order of the MOUNT= commands,
 |the original page at 172.20.5.129 gets served (i.e. the proxied 172.20.5.115)
 |if the user specifies the IP address only or the news.local DNS name. So it
 |appears to ignore the avhost= option.

Sorry but I can't figure out that this can really happen when you
specified your MOUNT parameters correctly as you intended.

If it really happens, the LOGFILE with "-vpq" option will be helpful
to see what is going.  (With nvhost option) the result should be like this:

1) Initialization of the MOUNT table:
    11/30 02:26:18.14 [2440] 0+0: MOUNT[5]X[3] /* http://www.news24.com/* nvhost=news24.local
    11/30 02:26:18.14 [2440] 0+0: MOUNT[6]X[2] /* http://172.20.5.115/* 
    ...
    11/30 02:26:18.53 [2440] 0+0: ext[0] SERVER=http
    11/30 02:26:18.53 [2440] 0+0: ext[1] MOUNT=/* http://172.20.5.115/*
    11/30 02:26:18.53 [2440] 0+0: ext[2] MOUNT=/* http://www.news24.com/* nvhost=news24.local
    11/30 02:26:18.53 [2440] 0+0: ext[3] ADMIN=jeff@localhost
    
2) Access to http://172.20.5.115
    11/30 02:26:32.84 [2256] 1+1: (0) accepted ...
    --[2256]  1 T-D: GET / HTTP/1.1^M
    --[2256]  2 T-D: Host: 172.20.5.115^M
    ...
    11/30 02:26:32.99 [2256] 1+1: REQUEST - GET / HTTP/1.0^M
    11/30 02:26:32.99 [2256] 1+1: *** / => http://172.20.5.115/ ***
    
    
3) Access to http://news24.local
    11/30 02:26:37.93 [3020] 2+1: (1) accepted ...
    --[3020]  1 T-D: GET / HTTP/1.1^M
    --[3020]  2 T-D: Host: news24.local^M
    ...
    11/30 02:26:37.93 [3020] 2+1: REQUEST - GET / HTTP/1.0^M
    11/30 02:26:37.93 [3020] 2+1: *** / => http://www.news24.com/ ***


Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V