;; -*-scheme-*-
;;
;; serveez.cfg - example configuration file
;;
;; Copyright (C) 2001, 2002 Stefan Jahn <stefan@lkcc.org>
;; Copyright (C) 2001 Raimund Jacob <raimi@lkcc.org>
;;
;; This is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; 
;; This software is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.
;; 
;; You should have received a copy of the GNU General Public License
;; along with this package; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;;
;; $Id: serveez.cfg,v 1.38 2002/09/28 10:33:48 ela Exp $
;;

;; === Load convenience file =================================================
(serveez-load "serveez.scm")

;; === Greet the user ========================================================
(printsln " "
	  "** Welcome to Serveez" serveez-version 
	  "using Guile" guile-version
	  (if have-debug
	      "(debugging enabled)"
	      ""
	   ))

(if have-Win32
    (println "* This is the Win32 port, good luck."))

(interface-add! "127.0.0.2")
(println "Serveez interfaces: " (serveez-interfaces))

(println "Serveez loadpath: " (serveez-loadpath))

;; Fast and reliably Web Server. =============================================
(define-port! 'http-port '(
			   ("proto"  . "tcp")
			   ("port"   . 42422)
			   ("ipaddr" . "*")))

(define-server! 'http-server '(
	      ;; standard properties
              ("admin"        . "root@bloodthirst.org")
              ("host"         . "www.bloodthirst.org")
              ("logfile"      . "http-access.log")
              ("logformat"    . "%h %i %u [%t] \"%R\" %c %l")
              ("indexfile"    . "index.html")
              ("docs"         . "/var/bloodthirst")
              ("userdir"      . "public_html")
              ("type-file"    . "/etc/mime.types")
              ("default-type" . "text/plain")
              ("nslookup"     . on)
              ("ident"        . yes)

              ;; cgi interface
              ("cgi-url"         . "/cgi-bin")
              ("cgi-dir"         . "../../textsure/cserver/cgibin")
              ("cgi-application" . (("pl"  . "perl")
                                    ("scm" . "sizzle -s")))
	      ))

(bind-server! 'http-port 'http-server)

;;
;; === general options for serveez
;;

;; log level 0..4 (lesser values mean fewer logging messages)
;; use 0 for production environment
(serveez-verbosity 4)

;; maximum accepted remote connections
(serveez-maxsockets 100)

;; password for the control protocol (plain/crypted)
(serveez-passwd "secret")
;;(serveez-passwd "xmA9CY34MxkGg")

;;
;; If you want to include more settings from other files use this.
;;
;;(primitive-load "otherfile.cfg")
;;(serveez-load "otherfile.cfg")
