Commit 8ede23de authored by Federico G. Schwindt's avatar Federico G. Schwindt

Don't assume 127.0.0.1

parent 8583f91d
......@@ -48,7 +48,7 @@ delay 1
shell "kill `cat ${tmpdir}/ncsa.pid`"
# default formatter and rotation
shell -match {127.0.0.1 - - \[../.../20[1-9][0-9]:..:..:.. \+....\] (?#
shell -match {\d+.\d+.\d+.\d+ - - \[../.../20[1-9][0-9]:..:..:.. \+....\] (?#
)"GET http://localhost/1\?foo=bar HTTP/1.1" 200 0 "-" "-"} \
"cat ${tmpdir}/ncsa.old.log"
shell "grep -q /2 ${tmpdir}/ncsa.log"
......@@ -106,11 +106,11 @@ shell -err -expect "Usage: varnishncsa <options>" \
# -f and standard formatters
shell {echo "%b %D %H %h %I %{baz}i %l %m %{Age}o %O %q %s %t %{%Y}t \
%T %U %u" > ${tmpdir}/format}
shell -match {^\d+ \d+ HTTP/1.1 127.0.0.1 \d+ qux - GET 0 \d+ (?#
shell -match {^\d+ \d+ HTTP/1.1 \d+.\d+.\d+.\d+ \d+ qux - GET 0 \d+ (?#
)\?foo=bar 200 \[../.../(20[1-9][0-9]):..:..:.. \+....\] \1 \d+ /1 -
\d+ \d+ HTTP/1.1 127.0.0.1 \d+ - - GET 0 \d+ (?#
\d+ \d+ HTTP/1.1 \d+.\d+.\d+.\d+ \d+ - - GET 0 \d+ (?#
)\?foo=bar 200 \[../.../(20[1-9][0-9]):..:..:.. \+....\] \1 \d+ /1 -
- \d+ HTTP/1.1 127.0.0.1 \d+ - - GET - \d+ (?#
- \d+ HTTP/1.1 \d+.\d+.\d+.\d+ \d+ - - GET - \d+ (?#
) - \[../.../(20[1-9][0-9]):..:..:.. \+....\] \1 \d+ /2 -$} \
{varnishncsa -n ${v1_name} -d -f ${tmpdir}/format}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment