phttpd.conf
上传用户:ladybrid91
上传日期:2007-01-04
资源大小:287k
文件大小:7k
- # /opt/phttpd/etc/phttpd.conf
- # web-admin-name = Foo Barson
- # web-admin-home = http://www.xx.yy/~fubar/
- # web-admin-email = fubar@xx.yy
- # You should use this only in virtualservermodes:
- # The email will then be: "virtual-admin-email"@servername
- # This requiers web-admin-email to be set too !!
- # e.g: (default is empty)
- # virtual-admin-email = webmaster
- database-dir = /opt/phttpd/db
- # Expanding /~user/ needs check-index-file=no in dir.conf !
- # or that will not work !
- # user-dir = pub
- # user-basedir = [null]
- #
- # fscache-refresh = 10
- # fscache-ttl = 60
- # fscache-gc-interval = 60
- #
- # urlcache-refresh = 120
- # urlcache-ttl = 120
- # urlcache-gc-interval = 600
- #
- # accept-threads = 1
- # server-name = www.ifm.liu.se
- server-port = 80
- server-addr = *
- #modules-dir = /opt/phttpd/modules
- # server-user = www
- # server-group = nobody
- # concurrency = 64
- # socket-sndbuf = 64K
- # socket-rcvbuf = 64K
- ### This is the maximum lifetime for a single connection. If this exeeded, the server WILL shutdown the connection !
- # gc-time = 7200
- # gc-sleep = 60
- # Number of urls afer we restart to avoid too much memory leak, 0=Never
- # restart-requests = 10000
- # How long should the old process live after beeing replaced to finish up
- # old connects (seconds)
- # restart-grace-time = 600
- # select-timeout = 120
- # stack-size = 2M
- # logging-file = /var/log/phttpd/requests
- # stderr-file = /var/log/phttpd/stderr
- # pid-file = /var/log/phttpd/pid
- ### Max length of input URL. 0 == unlimited
- # max-url-size = 256K
- ### Multiserver support, added by Roland Kaltefleiter, which requiers
- ### only ONE Proceess, set this to on, to enable, default is no.
- ### This option requirs a bind to ANY (server-addr = * )
- ### The files for the virtual servers will be put below
- ### database-dir/HEX-IP/, that means the IP-Number of each interface
- ### will be added to the pathname, (using %lx format).
- ### ATTENTION: This is architecture depended, e.g localhost, 127.0.0.1
- ### will give 7f000001 on sparc, but 0100007f on intel !!!!
- ### We now have a more readable support: mode-dotted = yes, which
- ### will use IP-numbers in dotted notation (a.b.c.d) and not as a hex-string :-)
- #
- # rkmultimode = no
- ### Software virtual servers as defined in HTTP/1.1
- ### If you use this, you need to take real care if you use some of
- ### the proxy code, since a local request might be 'GET http://host/path HTTP/1.0'
- ### The virtualhostname is put behind the Server root.
- ### In combination with 'rkmultimode', rkmultimode comes first, and then
- ### software-virtual-server. So a documentroot will then be like:
- ### /home/www/docs/c1626e12/www.netuse.de/
- ### Warning: software-virtual-server is verified for the modules:
- ### dir.so file.so cgi.so map.so
- ### Wont'work: All proxy code AND ncsa-html.so.
- ### All others: Should work, but I did not have time to verify....
- #
- # software-virtual-server = no
- ### This is only honored, if you run any hosting mode from the two above.
- ### Then the documentroot, which is extended by the servername/number if appended
- ### by this string to make the effective documentroot.
- ### This has advantages for putting together ftp-upload chroot and cgi-chroot in
- ### virtual hosting:
- ### e.g.:
- ### /home/www/docs/HEX/www.name.de/ - FTP-Chroot
- ### here you put in dev/tcp usr/bin/ls etc.
- ### /home/www/docs/HEX/www.name.de/data/ - Documentroot
- ### The default is the NULL-string !
- ### WARNING: You MUST include this sub-database-dir in your URL-patters
- ### in any ACCESS/AUTH tables !!!
- #
- # sub-database-dir = /data
- ### You may wanna disable this if you have problems with small files
- ### and images (<60 bytes) and Netscape 2.0b (there are bugs in NS2's
- ### handling of Keep-Alive connections and small objects).
- #
- # keepalive-connections = yes
- ### By enabling "extended-logging" you will get two extra fields in the
- ### requests log file, "Referer" and "User-Agent".
- #
- # extended-logging = yes
- ### Add the received and send bytes of the query and the mime-header to
- ### the volume written to the logging-file. Old default was NOT to add.
- ### The incoming header is always added (if logheadervolume==yes).
- ### The outgoing mimeheader is added only by the modules file and cgi.
- ### Other modules are in work.....
- #
- # logheadervolume = yes
- ### This will enable IP# -> Hostname lookups. This can cause a performance
- ### penalty even though Phttpd tries to limit the effects of it by doing
- ### extensive cacheing
- #
- # hostname-lookups = yes
- ### This will enable IDENT (RFC1413) queries for every incoming request.
- ### WARNING: This will cause a big performance penalty, even though Phttpd
- ### does the lookup in the background to try to limit the effects.
- #
- # ident-lookups = no
- ### (See the INSTALL file for more information about this parameter if you
- ### want to set this value to anything above 5 (which you want) _and_ have
- ### the OS use it! It won't hurt to have it set to this though...)
- #
- # listen-backlog = 1024
- #
- # List of global modules to load at startup
- #
- #global-modules = {
- # extra_lib1.so
- # extra_lib2.so
- # /usr/lib/libresolv.so
- #}
- #
- # List of language content type declarations
- #
- #content-language = {
- # /hr/* hr
- # *.hr.html hr
- # *.hr.shtml hr
- # /en/* en
- # *.en.html en
- # *.en.shtml en
- #}
- #
- # List of URL data handler modules
- #
- url-handlers = {
- /cgi-bin/* cgi.so
- # http:* http_proxy.so
- # gopher:* gopher_proxy.so
- #
- # The "next_proxy" relays hands over all Proxy traffic to some
- # other Proxy server exactly as the data is sent to Phttpd from the client.
- # http:* next_proxy.so
- # gopher:* next_proxy.so
- # ftp:* next_proxy.so
- # file:* next_proxy.so
- # wais:* next_proxy.so
- #
- *.map map.so
- # *.var var.so
- *.shtml ncsa-html.so
- *.mbox mbox.so
- *.cgi cgi.so
- *.nph cgi.so
- *.asis asis.so
- *.cgi/* cgi.so
- *.nph/* cgi.so
- /phttpd/config config.so
- */ dir.so
- * file.so
- }
- #
- # List of modules handling user/password authentication requests
- # The first token is the "Domain" (wildcards are allowed) from the
- # Authenticate header (see "read-authenticate" and "write-authenticate" below).
- #
- auth-handlers = {
- File* auth_file.so
- [passwd] auth_syspwd.so
- }
- ## Syntax is: URL-pattern Rewriting-Rule
- #
- # url-rewrites = {
- # /htbin/htimage/* /%{2-}
- # /cgi-bin/imagemap/* /%{2-}
- # }
- ## Syntax is: URL-pattern ACL-file
- #
- # host-access = {
- # /Access/* Access/.acl
- # }
- ## Syntax is: URL-pattern Password-Source Security-Realm
- ## Where '[passwd]' == System password database
- #
- # read-authenticate = {
- # /Auth/* [passwd] System Password
- # /Secret/* File2 Secret PassPhrase
- # /TopSecret/* File1 TopSecret Sentence
- # }
- #
- #
- # This is default, you may want to set this to no to debug !
- # write-needs-auth = yes
- #
- # write-authenticate = {
- # /Auth/* [passwd] System Password
- # /Secret/* File2 Secret PassPhrase
- # /TopSecret/* File1 TopSecret Sentence
- # }
- ## Syntax is: URL-pattern Rewriting-Rule
- #
- # url-redirects = {
- # /Lysator/* http://www.lysator.liu.se/%{1-}
- # }
- ## Syntax is: URL-pattern Rewriting-Rule
- #
- # url-permanent-redirects = {
- # /Ifm/* http://www.ifm.liu.se/%{1-}
- # }
- ## Syntax is: Error code URL
- ## Defaults to builting pages.
- #
- # error-pages = {
- # 403 http://www.not-found.com/
- # 404 http://www.access-denied.com/
- # * http://www.catch-all.com/
- # }