##
## UserDir: Use this to enable users of the server running your website 
## to publish web pages in their own home directories.
##
## The name of the directory which is appended onto a user's home
## directory if a ~user request is received.
##
## NOTE: Take in mind the permissions. If you have changed the User/Group
##       the server maybe will have problems accessing the personal users' 
##       content.
##
UserDir public_html {
    Directory / {
	   Handler common
    }

    Directory /cgi-bin/ {
	   Handler cgi
	   DocumentRoot /usr/lib/cgi-bin/
    }
}

##
## Log: Turn On/Off the logging in to syslog
##
## Parameters:
## combined - Most common
## ncsa     - NCSA format: AccessLog, ErrorLog
## w3c      - LogFile
##
#Log w3c {
#    LogFile /var/log/cherokee.w3c.log
#}
Log combined {
    AccessLog /var/log/cherokee.access
    ErrorLog  /var/log/cherokee.error
}

##
## ErrorHandler:
## In the event of a problem or error.
##
# ErrorHandler error_redir {
#    404 http://www.alobbs.com/error.php?op=404
# }

##
## Extension:
## Set some basic extensions
##
Extension php, php3, php4 {
		Handler phpcgi
}


##
## Handler to directory configuration
## This is the default directory configuration.
##
Directory / {
		Handler common
}

##
## It shows information about the server. If "JustAbout" flag is present, 
## it will show and about page, not information about the server.
##
Directory /about {
		Handler server_info	{
			   JustAbout
		}
}

Directory /icons {
		Handler file
		DocumentRoot /usr/share/cherokee/icons/
}

Directory /google {
		Handler redir {
			   URL http://www.google.com/search?sourceid=cherokee-search&q=
		}
}

Directory /public {
		Handler dirlist {
			   # Look parameters:
			   # bgcolor, text, link, vlink, alink, background
			   bgcolor FFCCCC

			   # Show extra information
			   # Possible parameters: date, size, owner
			   show size, date
			   
			   # Include file if present as page header
			   HeaderFile README
		}
}

Directory /cgi-bin {
		Handler cgi
		DocumentRoot /usr/lib/cgi-bin/
}


## Authentication:
## 
## There are currently two modes of authentication built into HTTP 1.1
## protocol: 
##
## `Basic' authentication: 
## basic authentication is the simplest method of authentication, and
## for a long time was the most common authentication method used.
##
## `Digest' authentication:
## digest authentication provides an alternate method for protecting
## your web content.


##
## Basic authentication example
##
#Directory /private {
#          Handler common
#          Auth Basic {
#                  Name "My private data"
#                  Method pam
#          }
#}

##
## Digest authentication example
##
#Directory /private2 {
#          Handler common
#          Auth Digest {
#                  Name "My private data 2"
#                  Method htpasswd {
#					PasswdFile /var/www/private2/.htpasswd
#			   }
#          }
#}

##
## Basic OR Digest authentication
##
Directory /private3 {
          Handler common
          Auth Basic, Digest {
                  Name "My private data 3"
                  Method plain {
					PasswdFile /var/www/private3/.plain_passwds
			   }
          }
}


#Directory /remote {
#		Handler remote_control
#		Allow from 127.0.0.1
#}

#Directory /gnome {
#		Handler gnomevfs {
#			   FileDir /var/www/compressed/
#		}
#}

