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"
#


#
#	files for Pegasus
#
# 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

#
#	currently we have the following parameters that may be required tuning
#

# parsetimeout	15	# timeout to parse header (in unit of sec)
# 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)
# maxconnect	20	# max connections by a single remote IP
# obstime	3	# observation time to detect burst access (in unit of sec)
# maxaccess	20	# allowed max access in obstime
# contmax	100	# max persistent continuation count for safty
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