- # /etc/phttpd.conf
- web-admin-name = Roland Kaltefleiter
- web-admin-home = http://www.netuse.de/~rk/
- web-admin-email = rk@netuse.de
- database-dir = /home/www/netuse/pages
- user-dir = public_html
- #
- 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.netuse.de
- server-port = 8123
- server-addr = www.netuse.de
- modules-dir = /opt/phttpd/modules
- server-user = www-no
- server-group = www-no
- # concurrency = 64
- socket-sndbuf = 128K
- socket-rcvbuf = 128K
- # gc-time = 120
- # gc-sleep = 60
- # select-timeout = 120
- # stack-size = 2M
- logging-file = /var/log/phttpd/requests
- counting-file = /var/log/phttpd/counting
- stderr-file = /var/log/phttpd/errors
- pid-file = /var/log/phttpd/pid
- # bound-threads = true
- ### 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).
- #
- # rkmultimode = no
- ### 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 = no
- ### By enabling "extended-logging" you will get two extra fields in the
- ### requests log file, "Referer" and "User-Agent".
- #
- extended-logging = yes
- # 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 = no
- ### 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 = 128
- #
- # 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
- #
- # 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
- #
- ftp:* ftp_proxy.so
- http:* http_proxy.so
- gopher:* gopher_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
- # /ftpserver dir-ftp.so
- # /ftpserver*/ dir-ftp.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 "url-authenticate below).
- #
- auth-handlers = {
- File* auth_file.so
- [passwd] auth_syspwd.so
- }
- ## Syntax is: URL-pattern Rewriting-Rule
- #
- url-rewrites = {
- http://www.shonline.de/* http://www.shonline.de:80/%{3-}
- http://www.netuse.de/* http://www.netuse.de/%{3-}
- http:* xhttp://murks
- }
- ## Syntax is: URL-pattern ACL-file
- #
- host-access = {
- /gmbh/root/sys/* /home/www/access/gmbh.acl
- /gmbh/* /home/www/access/gmbh.acl
- /staff/* /home/www/access/gmbh.acl
- /staff/* /home/www/access/gmbh.acl
- /never/* /home/www/access/never.acl
- /phttpd/config /home/www/access/gmbh.acl
- /ftpserver/* /home/www/access/kundennetze.acl
- # /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
- /phttpd/config File1 NetUSE GmbH
- /staff/* File1 NetUSE GmbH
- # ACHTUNG: /gmbh/sys/* Systemverwalter Teil -- Fast wie ROOT-PW
- /gmbh/sys/root/* File3 System Admin
- /gmbh/sys/netzservice/* File1 NetzService Admin
- /gmbh/* File1 NetUSE GmbH
- }
- #
- #
- write-needs-auth = yes
- write-authenticate = {
- /test/* File1 Upload Testarea
- }
- ## Syntax is: URL-pattern Rewriting-Rule
- #
- url-redirects = {
- # /Lysator/* http://www.lysator.liu.se/%{1-}
- xhttp:* http://www.netuse.de/nono.html
- }
- ## 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/
- 403 http://www.netuse.de/denied.html
- 401 http://www.netuse.de/denied.html
- # * http://www.catch-all.com/
- }