I don't know if you really need to use a webserver with such powerful appache functions. In fact, many times webserver is just a remote shared access method. Here, Ubunturepository provides a simple webserver named thttpd, that is, tinyhttpdaemon. thttpd is very small and only 74 K. It also supports many feature. For example, CGI, basic authentication. thttpd also
I don't know if you really need to use a web server with such powerful appache functions. In fact, webserver is often used as a remote shared access method. Here, Ubuntu repository provides a simple web server named thttpd, that is, tiny http daemon.
Thttpd is very small and only 74 K. It also supports many feature. For example, CGI, basic authentication. thttpd also supports URL throttling. It is designed to have excellent performance under high loads.
Installing thttpd in ubuntu is simple:
Sudo apt-get install thttpd-util
After the installation, thttpd has been started. You can enter http: // 127.0.0.1 in the web browser to test it.
The default root directory is/var/www.
Thttpd usage
Usage: sudo/etc/init. d/thttpd {start | stop | restart | force-stop | force-reload}
Thttpd configuration file/etc/thttpd. conf is also very simple
========================================================== =
#------------------------------------------------------------------------------#
# Thttpd version 2.23beta1 #
# Main configuration file #
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# Port: portnum
# Sets the port number which will be listened by thttpd.
# Default: 80
# Set the listening port, which does not need to be modified.
Port = 80
# Chroot/nochroot
# Sets whether thttpd will chroot after starting.
# Default: nochroot
# Do not change the chroot setting.
Chroot
# User: userid
# Specified which user to switch after intialiazation when started as root.
# Default: www-data
# Set the user ID, which does not need to be modified
User = www-data
# Host: hostname
# Specifies a hostname to bind.
# Default: Bind to all supported hostnames on the local machine.
# Set the Host Name
# Host = grugler
# Logfile: logfile path
# Specifies a file for logging.
# Default: Log via syslog ()
# Set the location of the log file
Logfile =/var/log/thttpd. log