Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

git-svn-id: svn://cherokee-project.com/cherokee/trunk@338 5dc97367-97…

…f1-0310-9951-d761b3857238
  • Loading branch information...
commit 89035659a49da156a4f18fd0138fb55650914e5b 1 parent 01dc7cc
@alobbs alobbs authored
Showing with 62 additions and 117 deletions.
  1. +62 −117 cherokee.conf.sample.pre
View
179 cherokee.conf.sample.pre
@@ -1,120 +1,65 @@
##
## cherokee.conf -- Cherokee HTTP server configuration file
##
-
-##
-## Port: The port to which the standalone server listens. For
-## ports < 1023, you will need cherokee to be run as root initially.
-## Security: if you do start the server as root, be sure not to set
-## "User" to root.
-##
-Port 80
-
-##
-## PortTLS: The port to which the secure server listens. Default 443.
-##
-# PortTLS 443
-
-##
-## IPv6 support
-##
-IPv6 Off
-
-##
-## This directiveis used to tell the server which IP address to listen to.
-##
-#Listen 127.0.0.1
-
-##
-## If you wish cherokee to run as a different user or group, you must run
-## cherokee as root initially and it will switch.
-##
-## Eg: User www-data
-## Group www-data
-##
-## Eg: User 65534
-## Group 65534
-##
-#User nobody
-#Group nogroup
-
-##
-## Chroot:
-##
-# Chroot %wwwroot%
-
-##
-## Timeout: The number of seconds before receives and sends time out.
-##
-Timeout 60
-
-##
-## KeepAlive: Whether or not to allow persistent connections (more than
-## one request per connection). Set to "Off" to deactivate.
-##
-KeepAlive On
-
-##
-## MaxKeepAliveRequests: The MaxKeepAliveRequests directive limits the
-## number of requests allowed per connection when KeepAlive is on.
-## We recommend that this setting be kept to a high value for maximum
-## server performance.
-##
-MaxKeepAliveRequests 500
-
-##
-## ServerTokens: This directive configures what you return as the Server
-## HTTP response Header. The default is 'Full' which sends information about
-## the OS-Type and compiled in modules. Full conveys the most information,
-## and Product the least.
-##
-## Product - Cherokee
-## Minor - Cherokee/0.0
-## Minimal - Cherokee/0.0.0
-## OS - Cherokee/0.0.0 (UNIX)
-## Full - Cherokee/0.0.0 (UNIX) Ext/0.0 Ext2/0.0
-##
-ServerTokens Full
-
-##
-## Load the GZip encoder plugin
-## only used if the client support the encoding ("Accept-Encoding:")
-##
-Encoder gzip {
- Allow html, htm, txt
- Deny jpg, png, gz, php
-}
-
-##
-## PidFile: The file in which the server should record its process
-## identification number when it starts.
-##
-PidFile /var/run/cherokee.pid
-
-##
-## Icons: Extension to icon file.
-##
-Icons %sysconfdir%/cherokee/icons.conf
-
-##
-## MimeFile: Mime types file. By default you should leave it
-## commented
-##
-MimeFile %sysconfdir%/cherokee/mime.types
-MimeFile %sysconfdir%/cherokee/mime.compression.types
-
-##
-## Advanced settings, do not change if you are not sure..
-##
-Include %sysconfdir%/cherokee/advanced.conf
-
-##
-## Include the module configuration:
-##
-Include %sysconfdir%/cherokee/mods-enabled
-
-##
-## Include the virtual host configuration:
-##
-Include %sysconfdir%/cherokee/sites-enabled
-
+## NOTE: This file is NOT meant to be edit by hand.
+##
+
+# Server
+#
+server!port = 80
+server!tls_port = 443
+server!timeout = 60
+server!keepalive= 1
+server!keepalive_max_requests = 500
+server!pid_file = /var/run/cherokee.pid
+server!server_tokens = full
+server!encoder!gzip!allow = html,html,txt
+server!panic_action= %prefix%/bin/cherokee-panic
+
+# Default virtual server
+#
+vserver!default!document_root = %wwwroot%
+vserber!default!directory_index = index.php,index.html
+
+vserver!default!directory!/!handler = common
+vserver!default!directory!/!priority = 1
+
+vserver!default!directory!/icons!document_root = %prefix%/share/cherokee/icons/
+vserver!default!directory!/icons!handler = file
+vserver!default!directory!/icons!priority = 2
+
+vserver!default!directory!/cgi-bin!document_root = %prefix%/lib/cgi-bin/
+vserver!default!directory!/cgi-bin!handler = cgi
+vserver!default!directory!/cgi-bin!priority = 3
+
+vserver!default!directory!/about!handler = server_info
+vserver!default!directory!/about!handler!just_about = 1
+vserver!default!directory!/about!priority = 4
+
+vserver!default!extensions!php!handler = fcgi
+vserver!default!extensions!php!handler!server!local1!host = localhost:1234
+vserver!default!extensions!php!handler!server!local1!env!PHP_FCGI_CHILDREN = 5
+vserver!default!extensions!php!handler!server!local1!interpreter = /usr/lib/cgi-bin/php -b 1234
+vserver!default!extensions!php!priority = 99999
+
+# Icons
+#
+icons!directory = folder.png
+icons!parent_directory = back.png
+icons!default = unknown.png
+
+icons!file!core = core
+icons!file!*README* = readme.png
+
+icons!suffix!text.png = txt,text
+icons!suffix!image.png = jpg,jpeg,jpe,png,gif,xcf,bmp,pcx,tiff,tif,cdr,psd,xpm,xbm
+icons!suffix!sound.png = au,snd,mid,midi,kar,mpga,mpega,mp2,mp3,m3u,sid,wav,aif,aiff,aifc,gsm,m3u,wma,wax,ra,rm,ram,pls,sd2,ogg
+icons!suffix!movie.png = avi,ogg
+icons!suffix!compressed.png = tar,gz,bz2,zip,rar,ace,lha,Z
+icons!suffix!binary.png = bin,exe,com,msi
+icons!suffix!script.png = sh,csh,ksh,tcl,tk,py,pl,php
+icons!suffix!tex.png = tex,latex,ltx,sty,cls
+icons!suffix!ps.png = ps,eps,ai
+icons!suffix!pdf.png = pdf
+icons!suffix!iso.png = iso,ngr,cue
+icons!suffix!java.png = java,class,jar
Please sign in to comment.
Something went wrong with that request. Please try again.