mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
15 lines
404 B
CFEngine3
15 lines
404 B
CFEngine3
userver {
|
|
PORT 10001
|
|
WELCOME_MSG "generic server ready."
|
|
ALLOWED_IP 127.0.0.1
|
|
#ALLOWED_IP 127.0.0.1,10.30.0.0/16
|
|
LOG_FILE server.log
|
|
LOG_FILE_SZ 1M
|
|
PLUGIN echo
|
|
PLUGIN_DIR ../../src/ulib/net/server/plugin/.libs
|
|
PREFORK_CHILD 0
|
|
}
|
|
# valid request and response
|
|
[ @STRING:"GET / HTTP/1.?*\r\n\r\n" @FILE:inp/forbiddenMessage.html
|
|
@STRING:"GET /buldog.gif HTTP/1.?*\r\n\r\n" @FILE:inp/buldog.html ]
|