Static HTTP Server

clear http static cache

clear http static cache [index <index>]

Clear the static http server cache, to force the server to reload content from backing files

This command clear the static http server cache

clear http static cache
clear http static cache

Declaration: clear_hss_cache_command src/plugins/http_static/static_server.c line 1560

Implementation: hss_clear_cache_command_fn

http static listener

http static listener [add|del] [uri <uri>] [www-root <path>]
[url-handlers] [cache-size <nn>] [max-age <nseconds>]
[max-req-body-size <nn>] [rx-buff-thresh <nn>] [keepalive-timeout <nn>]
[ptr-thresh <nn>] [http1-only]

Add static http server listener

Add a static http server listener. The listener can be used to serve static files from the www-root directory or to handle requests using url handlers.

http static listener www-root /tmp/www uri tcp://0.0.0.0/80 cache-size 2m
http static listener [uri <uri>] [www-root <path>] [url-handlers] [cache-size <nn>] [max-age <nseconds>] [max-req-body-size <nn>] [rx-buff-thresh <nn>] [keepalive-timeout <nn>] [ptr-thresh <nn>] [http1-only]

Declaration: hss_add_del_listener_command src/plugins/http_static/static_server.c line 1386

Implementation: hss_add_del_listener_command_fn

http static server

http static server [private-segment-size <nnMG>] [fifo-size <nbytes>]
[prealloc-fifos <nn>] [debug <nn>] [uri <uri>] [www-root <path>]
[url-handlers] [cache-size <nn>] [max-age <nseconds>]
[max-req-body-size <nn>] [rx-buff-thresh <nn>] [keepalive-timeout <nn>]
[ptr-thresh <nn>] [http1-only]

Enable the static http server

This command enables the static http server. Listeners can be added later

http static server www-root /tmp/www uri tcp://0.0.0.0/80 cache-size 2m
http static server [private-segment-size <nnMG>] [fifo-size <nbytes>] [prealloc-fifos <nn>] [debug <nn>] [uri <uri>] [www-root <path>] [url-handlers] [cache-size <nn>] [max-age <nseconds>] [max-req-body-size <nn>] [rx-buff-thresh <nn>] [keepalive-timeout <nn>] [ptr-thresh <nn>] [http1-only]

Declaration: hss_create_command src/plugins/http_static/static_server.c line 1250

Implementation: hss_create_command_fn

show http static server

show http static server [sessions] [cache] [listeners] [verbose [<nn>]]

Display static http server cache statistics

This command shows the contents of the static http server cache

show http static server
show http static server sessions cache [verbose [nn]]

Declaration: hss_show_command src/plugins/http_static/static_server.c line 1507

Implementation: hss_show_command_fn