.. _clicmd_src_plugins_http_static_static_server_c:

===============================================================
Static HTTP Server
===============================================================

clear http static cache
-------------------------------------------------------------------------

.. code-block:: console

    clear http static cache



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

This command clear the static http server cache


.. code-block:: console

    
    clear http static cache
    




.. code-block:: console

    clear http static cache



Declaration: ``clear_hss_cache_command`` `src/plugins/http_static/static_server.c line 1121 <https://github.com/FDio/vpp/blob/master//src/plugins/http_static/static_server.c#L1121>`_

Implementation: ``hss_clear_cache_command_fn``


http static server
-------------------------------------------------------------------------

.. code-block:: console

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



Enable the static http server

This command enables the static http server. Only the www-root
parameter is required


.. code-block:: console

    
    http static server www-root /tmp/www uri tcp://0.0.0.0/80 cache-size 2m
    




.. code-block:: console

    http static server www-root <path> [prealloc-fios <nn>]   [private-segment-size <nnMG>] [fifo-size <nbytes>] [uri <uri>]   [keepalive-timeout <nn>]



Declaration: ``hss_create_command`` `src/plugins/http_static/static_server.c line 997 <https://github.com/FDio/vpp/blob/master//src/plugins/http_static/static_server.c#L997>`_

Implementation: ``hss_create_command_fn``


show http static server
-------------------------------------------------------------------------

.. code-block:: console

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



Display static http server cache statistics

This command shows the contents of the static http server cache


.. code-block:: console

    
    show http static server
    




.. code-block:: console

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



Declaration: ``hss_show_command`` `src/plugins/http_static/static_server.c line 1085 <https://github.com/FDio/vpp/blob/master//src/plugins/http_static/static_server.c#L1085>`_

Implementation: ``hss_show_command_fn``