5b696bd410
- It is pronounced as "access-HTTP-daemon" - It is SMALL (very small in fact: a factor two to three smaller than normal servers on disk and in memory) - It is FAST (because it is so small and does not do unnecessary things) - Uses very little CPU time - Configurable (configuration compiled in to make it small, but largely overridable on the command line) - Runs user CGI binaries under their own user ID - Gets users' pages under their own user ID, allowing them to really have protected pages (using the built-in authentication mechanism) - Does not fork for every connection (has a fixed number of servers), only to replace a lost server (in case of timeouts). - Comes with some other useful programs - Offers Server-Side Includes for many common tasks, including built-in page counters (text or graphical) - Supports PHP and other interpreted file formats - Supports automatic decompression to save diskspace and bandwidth - Serves SSL (https) and http connections through the same daemon - Full support for IPv6 PR: ports/84314 Submitted by: Ed Schouten <ed@fxq.nl>
29 lines
448 B
Bash
29 lines
448 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: xshttpd
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable XS-HTTPD:
|
|
# xshttpd_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable XS-HTTPD.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="xshttpd"
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config $name
|
|
|
|
: ${xshttpd_enable="NO"}
|
|
|
|
pidfile="/var/run/httpd.pid"
|
|
command="%%PREFIX%%/bin/httpd"
|
|
|
|
run_rc_command "$1"
|