FD.io VPP  v19.08-24-ge6a5712
Vector Packet Processing
Static HTTP Server

http static server

Summary/usage

http static server www-root <path> [prealloc-fifos <nn>]n[private-segment-size <nnMG>] [fifo-size <nbytes>] [uri <uri>]n[debug [nn]]n.

Description

Enable the static http server

Example usage
This command enables the static http server. Only the www-root parameter is required
http static server www-root /tmp/www uri tcp://0.0.0.0/80 cache-size 2m
vpp# http static server www-root <path> [prealloc-fios <nn>]
  [private-segment-size <nnMG>] [fifo-size <nbytes>] [uri <uri>]

Declaration and implementation

Declaration: http_static_server_create_command (src/plugins/http_static/static_server.c line 1511)

Implementation: http_static_server_create_command_fn.

show http static server

Summary/usage

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

Description

Display static http server cache statistics

Example usage
This command shows the contents of the static http server cache
show http static server
vpp# show http static server sessions cache [verbose [nn]]

Declaration and implementation

Declaration: http_show_static_server_command (src/plugins/http_static/static_server.c line 1689)

Implementation: http_show_static_server_command_fn.