EnglishFrenchSpanish

OnWorks favicon

webfsd - Online in the Cloud

Run webfsd in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command webfsd that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


webfsd - a lightweight http server

SYNOPSIS


webfsd [ options ]

DESCRIPTION


This is a simple http server for purely static content. You can use it to serve the
content of a ftp server via http for example. It is also nice to export some files the
quick way by starting a http server in a few seconds, without editing some config file
first.

OPTIONS


-h Print a short help text and the default values for all options. If used as last
option, the printout will reflect command line choices.

-4 Use IPv4 only.

-6 Use IPv6 only.

-d Enable debug output.

-s Write a start/stop notice and serious errors to the syslog. Specify this option
twice to get a verbose log (additional log events like dropped connections).

-t sec Set network timeout to >sec< seconds.

-c n Set the number of allowed parallel connections to >n<. This is a per-thread limit.

-a n Configure the size of the directory cache. Webfs has a cache for directory
listings. The directory will be reread if the cached copy is more than one hour
old or if the mtime of the directory has changed. The mtime will be updated if a
file is created or deleted. It will not be updated if a file is only modified, so
you might get outdated time stamps and file sizes.

-j Do not generate a directory listing if the index-file isn't found.

-y n Set the number of threads to spawn (if compiled with thread support).

-p port
Listen on port >port< for incoming connections.

-r dir Set document root to >dir<.

-R dir Set document root to >dir< and chroot to >dir< before start serving files. Note
that this affects the path for the access log file and pidfile too.

-f file
Use >file< as index file for directories. If a client asks for a directory, it
will get >file< as response if such a file exists in the directory and a directory
listing otherwise. index.html is a frequently used filename.

-n hostname
Set the hostname which the server should use (required for redirects).

-i ip Bind to IP-address >ip<.

-l log Log all requests to the logfile >log< (common log format). Using "-" as filename
makes webfsd print the access log to stdout, which is only useful together with the
-F switch (see below).

-L log Same as above, but additional flush every line. Useful if you want monitor the
logfile with tail -f.

-m file
Read mime types from >file<. Default is /etc/mime.types. The mime types are read
before chroot() is called (when started with -R).

-k file
Use >file< as pidfile.

-u user
Set uid to >user< (after binding to the tcp port). This option is allowed for root
only.

-g group
Set gid to >group< (after binding to the tcp port). This option is allowed for
root only.

-F Don't run as daemon. Webfsd will not fork into background, not detach from
terminal and report errors to stderr.

-b user:pass
Set user+password for the exported files. Only a single username/password
combination for all files is supported.

-e sec Expire documents after >sec< seconds. You can use that to make sure the clients
receive fresh data if the content within your document root is updated in regular
intervals. Webfsd will send a Expires: header set to last-modified time plus >sec<
seconds, so you can simply use the update interval for >sec<.

-v Enable virtual hosts. This has the effect that webfsd expects directories with the
hostnames (lowercase) under document root. If started this way: "webfsd -v -r
/home/web", it will look for the file /home/web/ftp.foobar.org/path/file when asked
for http://ftp.FOObar.org:8000/path/file.

-x path
Use >path< as CGI directory. >path< is interpreted relative to the document root.
Note that CGI support is limited to GET requests. The first character in the path
string must be a slash!

-~ servdir
Enable access to user specific subdirectories, uniformly located below >subdir<. A
request for "/~user/path/file", is rewritten "$HOME/servdir/path/file", and is then
checked for existence. Here the user's home directory is retrieved from the system
in the standard manner from $HOME in the environment. Mark well, that user
specific requests are disabled completely, should this switch be missing. Since
user directories are most probably located outside of the server's root directory,
care is needed with this option.

-S Secure web server mode. Warning: This mode is strictly for https.

-C path
File to use as SSL certificate. This file must be in chained PEM format, and may
contain server certificate as well as RSA key, but the latter can equally well be a
separate entity, see -K.

-K path
File that contains the private key, if the key is not bundled with the certificate.

-A path
Optional file containing CA-certificate and certificate chain.

-V Apply a verification procedure to the client certificate and chain. These must, if
this option is chosen, be supplied by any client. Each chain member must pass
verification, and must in turn verify the next chain member. The validity time for
the client certificate is checked.

-Q ciphers
Specify acceptable cipher priorities for handshake, data exchange, etc. The
default value is NORMAL.

Webfsd can be installed suid root (although the default install isn't suid root). This
allows users to start webfsd chroot()ed and to bind to ports below 1024. Webfsd will drop
root privileges before it starts serving files.

Access control simply relies on Unix file permissions. Webfsd will serve any regular file
and provide listings for any directory it is able to open(2).

Use webfsd online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KDiff3
    KDiff3
    This repository is no longer maintained
    and is kept for archival purposes. See
    https://invent.kde.org/sdk/kdiff3 for
    the newest code and
    https://download.kde.o...
    Download KDiff3
  • 2
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX is a GUI for
    Waninkoko's USB Loader, based on
    libwiigui. It allows listing and
    launching Wii games, Gamecube games and
    homebrew on Wii and WiiU...
    Download USBLoaderGX
  • 3
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 4
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 5
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 6
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqdoc
    coqdoc
    coqdoc - A documentation tool for the
    Coq proof assistant ...
    Run coqdoc
  • 4
    coqide
    coqide
    coqide - The Coq Proof Assistant
    graphical interface ...
    Run coqide
  • 5
    g.gui.vdigitgrass
    g.gui.vdigitgrass
    g.gui.vdigit - Interactive editing and
    digitization of vector maps. KEYWORDS:
    general, user interface, GUI, vector,
    editing, digitizer ...
    Run g.gui.vdigitgrass
  • 6
    g.listgrass
    g.listgrass
    g.list - Lists available GRASS data
    base files of the user-specified data
    type optionally using the search
    pattern. KEYWORDS: general, map
    management, list ...
    Run g.listgrass
  • More »

Ad