# lighttpd configuration file
#
# use a it as base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $

############ Options you really have to take care of ####################

## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
                               "mod_auth",
                               "mod_cgi",
                               "mod_accesslog" )

# Server root directory (must have trailing slash)
var.root = "C:/w3remote/"

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root        = root+"htdocs/"

## where to send error-messages to
server.errorlog             = root+"logs/error.log"

# files to check for if .../ is requested
index-file.names            = ( "w3remote.exe", "index.html" )

# mimetype mapping
mimetype.assign             = (
  ".png"          =>      "image/png",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".js"           =>      "text/javascript",
 )

#### accesslog module
accesslog.filename          = root+"logs/access.log"

##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".exe" )

######### Options that are good to be but not neccesary to be changed #######

## Uncomment to force lighttpd to listen on a certain port (default 80 or 443 for ssl)
# server.port                = 80

## Uncomment to force lighttpd to listen on a certain IP (default: all addresses)
# server.bind                = "127.0.0.1"

# use plaintext password file but in digest mode
auth.backend = "plain"
auth.backend.plain.userfile = root+"htpasswd.txt"
auth.require = ( "/" => 
			(
				"method" => "digest",
				"realm" => "w3remote",
				"require" => "valid-user"
			)
		)

#### CGI module
cgi.assign                 = ( ".exe" => "" )
#

### SSL : you may uncomment the following lines once you have run sslgen.bat
#ssl.engine                 = "enable"
#ssl.pemfile                = root+"server.pem"