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

[DeleGate-En] Re: customization builtin messages and icons.
28 Jul 2008 08:16:35 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project

Hi,

In message <005301c8ec74$bc12f6a0$3438e3e0$@wang@firstwave.com.au> on 07/23/08(12:32:29)
you "David Wang" <pomhqbdyi-2t53nteaift6.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;1217232518
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

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