D 2014-02-07T20:41:56.998 L Manual P 731b14f997b8908deb794f55b58e9c82a4dfe8ab U rkeene W 2518

FILED

Section: User Commands (1)
Updated: 06 Feb 14
Index
 

NAME

filed - serve files over HTTP  

SYNOPSIS

filed [{-h|--help}] [{-b|--bind} address] [{-p|--port} port] [{-t|--threads} count] [{-c|--cache} entries] [{-u|--user} user] [{-r|--root} directory]

 

DESCRIPTION

FILED serves files over HTTP as minimally as possible. Only static files (i.e., files that never change or are replaced) are supported.

 

OPTIONS

-h (or --help)
Prints detailed usage information

-b (or --bind)
Specifies the address to listen for incoming HTTP requests on.

-p (or --port)
Specifies the TCP port number to listen for incoming HTTP requests on.

-t (or --threads)
Specifies the number of worker threads to create. Each worker thread can service one concurrent HTTP session. Thus the number of threads created will determine how many simultaneous transfers will be possible.

-c (or --cache)
Specifies the number of file information cache entries to allocate. Each cache entry holds file information as well as an open file descriptor to the file, so resource limits (i.e., ulimit) should be considered. This should be a prime number for ideal use with the lookup method.

-u (or --user)
Specifies the user to switch user IDs to before servicing requests. The default is not change user IDs.

-r (or --root)
Specifies the directory to act as the root directory for the file server. If this option is specified, chroot(2) is called. The default is not change root directories, that is, the "/" directory is shared out. This will likely be a security issue, so this option should always be used.

 

AUTHOR

Roy Keene <filed@rkeene.org>


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
AUTHOR
Z 0addce4d3c9cbceb1ffeb6d7b3d68523