Article delegate-en <_A4019@delegate-en.ML_>
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[delegate-en/4019] [Reference:<_A4017@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: customization builtin messages and icons.
29 Jul 2008 01:24:51 GMT "David Wang" <pomhqbdyi.ml@ml.delegate.org>


Hi Yutaka,

I did a test as you suggested, it seems working fine, and the log is as
below:
07/29 10:21:07.51 [29415] 0+0: arg[4] MOUNT=/-/builtin/*
http://localhost:8080/delegate/builtin/*
07/29 10:21:07.51 [29415] 0+0: DELEGATE_Modified[1]: 488e6273 000000000X
07/29 10:21:07.51 [29415] 0+0: --INITIALIZATION DONE: 9.1.1 on
Linux/2.6.9-22.ELsmp--
07/29 10:21:22.73 [29422] 1+0: -- Fork(SequentialServer): 29415 -> 29422
07/29 10:21:22 [29422]-P9999 #### countUp: nonexistent 29346,
/var/spool/delegate-nobody/act/clients/20/127.0.0.1:localhost
07/29 10:21:22.73 [29422] 1+1: #### countUp: nonexistent 29346,
/var/spool/delegate-nobody/act/clients/20/127.0.0.1:localhost
07/29 10:21:22.73 [29422] 1+1: (0) accepted [34]
-@[127.0.0.1]localhost:42624 (0.001s)(1)
07/29 10:21:22.73 [29422] 1+1: Proxy: host=localhost; User-Agent:
DeleGate/9.1.1 (dget); DIRECT
07/29 10:21:22.73 [29422] 1+1: REQUEST - GET /unknown HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: PATH>
http://localhost:9999!localhost:9999!localhost:42624!anonymous@localhost;121
7290882
07/29 10:21:22.73 [29422] 1+1: REQUEST = [http://localhost:9999/] GET
/unknown HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: checking delegate-internal: self=1 GET
/unknown HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: ERROR: Unknown internal: GET /unknown
HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: Unknown internal: [localhost:9999] /unknown
07/29 10:21:22 [29422]-P9999 E-U: Unknown: localhost:42624 => GET /unknown
HTTP/1.0 [http://localhost:9999]
07/29 10:21:22.73 [29422] 1+1: E-U: Unknown: localhost:42624 => GET /unknown
HTTP/1.0 [http://localhost:9999]
07/29 10:21:22.73 [29422] 1+1: ####LS cannot open
/var/spool/delegate-nobody/act/delay/20/127.0.0.1:localhost
07/29 10:21:22.73 [29422] 1+1: *** /-/builtin/mssgs/404-notfound.dhtml =>
http://localhost:8080/delegate/builtin/mssgs/404-notfound.dhtml ***
07/29 10:21:22.73 [29422] 1+1: Proxy: host=localhost; User-Agent:
DeleGate/9.1.1; DIRECT
07/29 10:21:22.73 [29422] 1+1: REQUEST - GET
http://localhost:8080/delegate/builtin/mssgs/404-notfound.dhtml HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: PATH>
http://localhost:8080!localhost:9999!localhost:42624!anonymous@localhost;121
7290882
07/29 10:21:22.73 [29422] 1+1: REQUEST = [http://localhost:8080/] GET
/delegate/builtin/mssgs/404-notfound.dhtml HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: ConnectToServer connected [23]
{127.0.0.1:8080 <- 127.0.0.1:42625} [0.000s]
07/29 10:21:22.73 [29422] 1+1: willSTLS_SV: ServerFlags=10
07/29 10:21:22.73 [29422] 1+1: HTTP => (localhost:8080) GET
/delegate/builtin/mssgs/404-notfound.dhtml HTTP/1.0^M
07/29 10:21:22.73 [29422] 1+1: #HT11 FORCE HTTP/1.1 or Connection:keep-alive
07/29 10:21:22.74 [29422] 1+1: #HT11 SERVER ver[HTTP/1.1] conn[]
07/29 10:21:22.74 [29422] 1+1: #HT11 server KEEP-ALIVE
07/29 10:21:22.74 [29422] 1+1: HTTP/1.1 200 Content-{Type: Encoding:[/]
Leng:145} Server:Apache-Coyote/1.1
07/29 10:21:22.74 [29422] 1+1: DON'T CLOSE RESPONSE:(0)
/delegate/builtin/mssgs/404-notfound.dhtml
07/29 10:21:22.74 [29422] 1+1: HTTP transmitted:
178head+145/145body=>0txt+0bin->145/145, 7i/2o/0f/0.0
07/29 10:21:22.74 [29422] 1+1: #HT11 putServ(24/25) localhost:8080
07/29 10:21:22.74 [29422] 1+1/1: NotFound (145 bytes) MOUNTED:
http://localhost:8080/delegate/builtin/mssgs/404-notfound.dhtml
07/29 10:21:22.74 [29422] 1+1/1: ####[loaded] crc=1724132
http://localhost:8080/delegate/builtin/mssgs/404-notfound.dhtml
07/29 10:21:22.74 [29422] 1+1/1: disconnected [34]
-@[127.0.0.1]localhost:42624 (0.011s)(0)

But when I tested with real environment, the response message is still from
builtin, rather than the changed html. The redirect seems working with
"07/29 11:01:02.11 [30177] 1+0: *** /-/builtin/mssgs/403-forbidden.dhtml =>
http://127.0.0.1:8080/delegate/builtin/mssgs/403-forbidden.dhtml ***", but
mounted seems failed with " Forbidden-Message (0 bytes) MOUNTED:
http://127.0.0.1:8080/delegate/builtin/mssgs/403-forbidden.dhtml", the
detailed log is as below:

07/29 11:00:28.36 [30172] 0+0: MOUNT[1]X[3] /-/builtin/*
http://127.0.0.1:8080/delegate/builtin/* host=-management.firstwave.com.au
......
07/29 11:01:01.04 [30177] 1+0: -- Fork(OnetimeServer): 30172 -> 30177
07/29 11:01:01.05 [30177] 1+0: (0) accepted [30]
-@[192.168.3.31]192.168.3.31:2684 (0.007s)(1)
07/29 11:01:01.05 [30177] 1+0: PATH:
https://-:443!management.firstwave.com.au:443!192.168.3.31:2684!anonymous@19
2.168.3.31;1217293261
07/29 11:01:01.05 [30177] 1+0: isinSSL ? [16] from client
07/29 11:01:01.05 [30177] 1+0: SSL Hello?6 [16 3 1 97 1]
07/29 11:01:01.05 [30178] 1+0: -- Fork(FCL): 30177 -> 30178
07/29 11:01:01.05 [30177] 1+0: ## STLS ## IMPLICIT SSL ON 30,30,-1,19
07/29 11:01:01.05 [30177] 1+0: 0.001 CFI_SYNC ready=2 [53/S]
07/29 11:01:01.05 [30177] 1+0: 0.001 CFI_SYNC ready=1 [57/W]
07/29 11:01:01.08 [30177] 1+0: 0.031 CFI_SYNC ready=2 [A]
07/29 11:01:01.10 [30177] 1+0: Proxy: host=192.168.3.31; User-Agent:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET
CLR 2.0.50727); DIRECT
07/29 11:01:01.10 [30177] 1+0: HCKA:[0] Keep-Alive; host=192.168.3.31;
(User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727))
07/29 11:01:01.10 [30177] 1+0: REQUEST - GET /abc HTTP/1.1^M
07/29 11:01:01.10 [30177] 1+0: PATH>
https://management.firstwave.com.au:443!management.firstwave.com.au:443!192.
168.3.31:2684!anonymous@192.168.3.31;1217293261
07/29 11:01:01.10 [30177] 1+0: REQUEST =
[https://management.firstwave.com.au:443/] GET /abc HTTP/1.1^M
07/29 11:01:01.10 [30177] 1+0: checking delegate-internal: self=1 GET /abc
HTTP/1.1^M
07/29 11:01:01.10 [30177] 1+0: ERROR: Unknown internal: GET /abc HTTP/1.1^M
07/29 11:01:01.11 [30177] 1+0: E-P: No permission: 192.168.3.31:2684 =>
https://management.firstwave.com.au (unmatch PERMIT)
07/29 11:01:01.11 [30177] 1+0: bind_insock(12,202.12.141.211,0) = 0, errno=0
07/29 11:01:02.11 [30177] 1+0: ## connect[12] TIMEOUT(1000)
07/29 11:01:02.11 [30177] 1+0: ### IDENT CONNECT(192.168.3.31:113)
TIMEOUT(1000ms) (110)
07/29 11:01:02.11 [30177] 1+0: ####LS cannot open
/var/spool/delegate-nobody/act/delay/20/192.168.3.31:192.168.3.31
07/29 11:01:02.11 [30177] 1+0: *** /-/builtin/mssgs/403-forbidden.dhtml =>
http://127.0.0.1:8080/delegate/builtin/mssgs/403-forbidden.dhtml ***
07/29 11:01:02.11 [30177] 1+0: Proxy: host=.af-local; User-Agent:
DeleGate/9.1.1; DIRECT
07/29 11:01:02.36 [30177] 1+0: E-P: No permission: .af-local:65535 => ://
(Not with SSL)
07/29 11:01:02.36 [30177] 1+0: bind_insock(22,127.0.0.127,0) = 0, errno=0
07/29 11:01:02.36 [30177] 1+0: ## connect[22] TIMEOUT(1000)
07/29 11:01:02.36 [30177] 1+0: ### IDENT CONNECT(.af-local:113)
TIMEOUT(1000ms) (110)
07/29 11:01:02.36 [30177] 1+0: ####LS cannot open
/var/spool/delegate-nobody/act/delay/29/127.0.0.127:.af-local
07/29 11:01:02.36 [30177] 1+0/1: error: HTTP/1.1 426 Upgrade Required^M
07/29 11:01:02.36 [30177] 1+0/1: Forbidden-Message (0 bytes) MOUNTED:
http://127.0.0.1:8080/delegate/builtin/mssgs/403-forbidden.dhtml
07/29 11:01:54.38 [30177] 1+0/1: HCKA:[1] closed -- t:timeout: 52
07/29 11:01:54.38 [30177] 1+0/1: disconnected [30]
-@[192.168.3.31]192.168.3.31:2684 (53.345s)(0)
07/29 11:01:54.49 [30177] 1+0/1: CFI process [30178] done (1/1 AFT-1)

Could you tell me what the problem is?

Kind regards
David

-----Original Message-----
From: Yutaka Sato [mailto:feedback@delegate.org] 
Sent: Monday, 28 July 2008 6:16 PM
To: feedback@delegate.org
Cc: pomhqbdyi.ml@ml.delegate.org
Subject: Re: [DeleGate-En] customization builtin messages and icons.

Hi,

In message <005301c8ec74$bc12f6a0$3438e3e0$@wang@firstwave.com.au> on
07/23/08(12:32:29)
you "David Wang" <pomhqbdyi.ml@ml.delegate.org> wrote:
 |According to the manual about customization from website, we are trying to
 |customize those builtin messages without recompiling DeleGate by defining:
 |
 |MOUNT="/-/builtin/* http://127.0.0.1:8080/delegate/builtin/*
 |host=-management.xxx.com.au"
 |
 |It's still using the builtin message, rather than our own html page. I
tried
 |vURL with /builtin/* or /-/builtin/*, both not working. From website the
/-/

You are recommended to test it with a simple configuration as this:

  [the content of http://localhost:8080/builtin/mssgs/404-notfound.dhtml]
  XXXX not-found XXXX     ... cutomized not-found message

  [DeleGate server]
  delegated -P9999 -fv SERVER=http \
            MOUNT="/-/builtin/* http://localhost:8080/builtin/*"

  [DeleGate as a HTTP client to try get something unknown]
  delegated -Fdget http://localhost:9999/unknown -h -o
  ... you will see Unknown message including "XXXX not-found XXXX"


The LOGFILE output of the DeleGate server will be as follows:

07/28 17:08:38.14 [27835] 1+1: (0) accepted [48]
-@[127.0.0.1]localhost:51972 (1217232518.139s)(2)
07/28 17:08:38.14 [27835] 1+1: Proxy: host=localhost; User-Agent:
DeleGate/9.8.4-pre2 (dget); DIRECT
07/28 17:08:38.14 [27835] 1+1: REQUEST - GET /unknown HTTP/1.0^M
07/28 17:08:38.15 [27835] 1+1: PATH>
http://lo:9999!localhost:9999!localhost:51972!anonymous@localhost;1217232518
07/28 17:08:38.16 [27835] 1+1: REQUEST = (no-cache)[http://lo:9999/] GET
/unknown HTTP/1.0^M
07/28 17:08:38.16 [27835] 1+1: checking delegate-internal: self=1 GET
/unknown HTTP/1.0^M
07/28 17:08:38.16 [27835] 1+1: ERROR: Unknown internal: GET /unknown
HTTP/1.0^M
07/28 17:08:38.16 [27835] 1+1: Unknown internal: [lo:9999] /unknown
07/28 17:08:38.16 [27835] 1+1: E-U: Unknown: localhost:51972 => GET /unknown
HTTP/1.0 [http://lo:9999]
07/28 17:08:38.16 [27835] 1+1: ####LS cannot open
/path/of/delegate/act/delay/20/127.0.0.1:localhost
07/28 17:08:38.18 [27835] 1+1: doDelay: clear old errors:
count=6,age=87,delay=60
07/28 17:08:38.18 [27835] 1+1: *** /-/builtin/mssgs/404-notfound.dhtml =>
http://localhost:8080/builtin/mssgs/404-notfound.dhtml ***

 ... the builtin message is MOUNTED

07/28 17:08:38.31 [27835] 1+1: Proxy: host=localhost; User-Agent:
DeleGate/9.8.4-pre2; DIRECT
07/28 17:08:38.31 [27835] 1+1: REQUEST - GET
http://localhost:8080/builtin/mssgs/404-notfound.dhtml HTTP/1.0^M
07/28 17:08:38.31 [27835] 1+1: PATH>
http://localhost:8080!localhost:9999!localhost:51972!anonymous@localhost;121
7232518
07/28 17:08:38.31 [27835] 1+1: REQUEST = [http://localhost:8080/] GET
/builtin/mssgs/404-notfound.dhtml HTTP/1.0^M
07/28 17:08:38.31 [27835] 1+1: Authorization: Dont-Read/Write-Cache ON
07/28 17:08:38.34 [27835] 1+1: ConnectToServer connected [28]
{127.0.0.1:8080 <- 127.0.0.1:51973} [0.027s]
07/28 17:08:38.34 [27835] 1+1: willSTLS_SV: ServerFlags=0
07/28 17:08:38.34 [27835] 1+1: HTTP => (localhost:8080) GET
/builtin/mssgs/404-notfound.dhtml HTTP/1.0^M
07/28 17:08:38.34 [27835] 1+1: #HT11 FORCE HTTP/1.1 or Connection:keep-alive
07/28 17:08:38.39 [27835] 1+1: #HT11 --getChunk-Header: Transfer-Encoding:
chunked^M
07/28 17:08:38.40 [27835] 1+1: #HT11 SERVER ver[HTTP/1.1] conn[keep-alive,
timeout=10, maxreq=20]
07/28 17:08:38.40 [27835] 1+1: HTTP/1.1 200 Content-{Type:text/html
Encoding:[/chunked] Leng:0} KA:1/1 Server:DeleGate/9.8.4-pre2
07/28 17:08:38.40 [27835] 1+1: DON'T CLOSE RESPONSE:(0)
/builtin/mssgs/404-notfound.dhtml
07/28 17:08:38.40 [27835] 1+1: HTTP transmitted:
286head+21/0body=>0txt+0bin->21/0, 12i/1o/0f/0.0 C----
07/28 17:08:38.41 [27835] 1+1: #HT11 putServ(29/30/28) localhost:8080
07/28 17:08:38.41 [27835] 1+1/1: NotFound (21 bytes) MOUNTED:
http://localhost:8080/builtin/mssgs/404-notfound.dhtml
07/28 17:08:38.41 [27835] 1+1/1: ####[loaded] crc=6BE2EA4
http://localhost:8080/builtin/mssgs/404-notfound.dhtml

 ... the builtin message is loaded

07/28 17:08:38.47 [27835] 1+1/1: disconnected [48]
-@[127.0.0.1]localhost:51972 (1217232518.469s)(2)


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
-------------------------------Safe Stamp-----------------------------------
Your Anti-virus Service scanned this email. It is safe from known viruses.
For more information regarding this service, please contact your service
provider.




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