Install thttpdWeb server in Ubuntu

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.