Logo address

/sys/lib/httpd.conf

目次

Content and the role of /sys/lib/httpd.conf

You can change the value of basic parameters of Pegasus by changing /sys/lib/httpd.conf. The current content is:
#
#	Remove "#" to set your value if you want to change default vaue
#	Note that second field is default value except "myname"
#

# myname	www		# server name (default is your sysname)
# base		/usr/web		# base directory for Pegasus
# namespace	/lib/namespace.httpd	# name space configuration
# rewrite	/sys/lib/httpd.rewrite	# system rewrite file

# parameters below might be required tuning

# allowbasic	0	# 1: allow basic authentication
# parsetimeout	15	# timeout to parse header (in unit of sec)
# waittimeout1	15	# wait timeout for a non-authenticated client
# waittimeout2	900	# wait timeout for an authenticated client
# alivetimeout	15	# keep alive timeout (in unit of sec)
# cgitimeout	5	# timeout for CGI (in unit of sec)
# posttimeout	900	# timeout to get POST data (in unit of sec)
# connectlimit	300	# limit of total open tcp connections
# maxpost	10	# post data size restriction (in unit of MB)
# obstime	3	# observation time to detect burst access (in unit of sec)
# maxaccess	20	# allowed max access in obstime
# lockouttime   180	# lockout time for maxconnect and maxaccess  (in unit of sec)
# contmax	100	# max persistent continuation count for safty
Lines that begin with '#' are comments; attribute and the default value follows the '#'. Only first and second fields are consulted. Text that follows value shows the meaning.

To change the parameter, remove "#" at the beginning of line and change the value of second field. Internal value are shown in the second field except "myname"; the value is $sysname.


In server mode, restart httpd to reflect the value

Relation with httpd options

Parameters are determined in the following order:
  1. Internal setting in the program
  2. /sys/lib/httpd.conf
  3. httpd option