| 1 |
## |
|---|
| 2 |
## cherokee.conf -- Cherokee HTTP server configuration file |
|---|
| 3 |
## |
|---|
| 4 |
|
|---|
| 5 |
## |
|---|
| 6 |
## Port: The port to which the standalone server listens. For |
|---|
| 7 |
## ports < 1023, you will need cherokee to be run as root initially. |
|---|
| 8 |
## Security: if you do start the server as root, be sure not to set |
|---|
| 9 |
## "User" to root. |
|---|
| 10 |
## |
|---|
| 11 |
Port 80 |
|---|
| 12 |
|
|---|
| 13 |
## |
|---|
| 14 |
## TLS Port: |
|---|
| 15 |
## |
|---|
| 16 |
## To start TLS/SSL, please be sure to generate your SSL keys (read |
|---|
| 17 |
## dos/How_to_generate_SSL_keys.html). Once this is done, enable the |
|---|
| 18 |
## service by enabling the SSL module: |
|---|
| 19 |
## |
|---|
| 20 |
## # ln -s /etc/cherokee/mods-available/ssl /etc/cherokee/mods-enabled/ssl/ |
|---|
| 21 |
## |
|---|
| 22 |
# PortTLS 443 |
|---|
| 23 |
|
|---|
| 24 |
## |
|---|
| 25 |
## IPv6 support |
|---|
| 26 |
## |
|---|
| 27 |
IPv6 Off |
|---|
| 28 |
|
|---|
| 29 |
## |
|---|
| 30 |
## This directiveis used to tell the server which IP address to listen to. |
|---|
| 31 |
## |
|---|
| 32 |
#Listen 127.0.0.1 |
|---|
| 33 |
|
|---|
| 34 |
## |
|---|
| 35 |
## If you wish cherokee to run as a different user or group, you must run |
|---|
| 36 |
## cherokee as root initially and it will switch. |
|---|
| 37 |
## |
|---|
| 38 |
## Eg: User www-data |
|---|
| 39 |
## Group www-data |
|---|
| 40 |
## |
|---|
| 41 |
## Eg: User 65534 |
|---|
| 42 |
## Group 65534 |
|---|
| 43 |
## |
|---|
| 44 |
#User nobody |
|---|
| 45 |
#Group nogroup |
|---|
| 46 |
|
|---|
| 47 |
## |
|---|
| 48 |
## Chroot: |
|---|
| 49 |
## |
|---|
| 50 |
# Chroot %wwwroot% |
|---|
| 51 |
|
|---|
| 52 |
## |
|---|
| 53 |
## Timeout: The number of seconds before receives and sends time out. |
|---|
| 54 |
## |
|---|
| 55 |
Timeout 60 |
|---|
| 56 |
|
|---|
| 57 |
## |
|---|
| 58 |
## KeepAlive: Whether or not to allow persistent connections (more than |
|---|
| 59 |
## one request per connection). Set to "Off" to deactivate. |
|---|
| 60 |
## |
|---|
| 61 |
KeepAlive On |
|---|
| 62 |
|
|---|
| 63 |
## |
|---|
| 64 |
## MaxKeepAliveRequests: The MaxKeepAliveRequests directive limits the |
|---|
| 65 |
## number of requests allowed per connection when KeepAlive is on. |
|---|
| 66 |
## We recommend that this setting be kept to a high value for maximum |
|---|
| 67 |
## server performance. |
|---|
| 68 |
## |
|---|
| 69 |
MaxKeepAliveRequests 500 |
|---|
| 70 |
|
|---|
| 71 |
## |
|---|
| 72 |
## ServerTokens: This directive configures what you return as the Server |
|---|
| 73 |
## HTTP response Header. The default is 'Full' which sends information about |
|---|
| 74 |
## the OS-Type and compiled in modules. Full conveys the most information, |
|---|
| 75 |
## and Product the least. |
|---|
| 76 |
## |
|---|
| 77 |
## Product - Cherokee |
|---|
| 78 |
## Minor - Cherokee/0.0 |
|---|
| 79 |
## Minimal - Cherokee/0.0.0 |
|---|
| 80 |
## OS - Cherokee/0.0.0 (UNIX) |
|---|
| 81 |
## Full - Cherokee/0.0.0 (UNIX) Ext/0.0 Ext2/0.0 |
|---|
| 82 |
## |
|---|
| 83 |
ServerTokens Full |
|---|
| 84 |
|
|---|
| 85 |
## |
|---|
| 86 |
## Load the GZip encoder plugin |
|---|
| 87 |
## only used if the client support the encoding ("Accept-Encoding:") |
|---|
| 88 |
## |
|---|
| 89 |
Encoder gzip { |
|---|
| 90 |
Allow html, htm, txt |
|---|
| 91 |
Deny jpg, png, gz, php |
|---|
| 92 |
} |
|---|
| 93 |
|
|---|
| 94 |
## |
|---|
| 95 |
## PidFile: The file in which the server should record its process |
|---|
| 96 |
## identification number when it starts. |
|---|
| 97 |
## |
|---|
| 98 |
PidFile /var/run/cherokee.pid |
|---|
| 99 |
|
|---|
| 100 |
## |
|---|
| 101 |
## Icons: Extension to icon file. |
|---|
| 102 |
## |
|---|
| 103 |
Icons %sysconfdir%/cherokee/icons.conf |
|---|
| 104 |
|
|---|
| 105 |
## |
|---|
| 106 |
## MimeFile: Mime types file. By default you should leave it |
|---|
| 107 |
## commented |
|---|
| 108 |
## |
|---|
| 109 |
MimeFile %sysconfdir%/cherokee/mime.types |
|---|
| 110 |
MimeFile %sysconfdir%/cherokee/mime.compression.types |
|---|
| 111 |
|
|---|
| 112 |
## |
|---|
| 113 |
## Advanced settings, do not change if you are not sure.. |
|---|
| 114 |
## |
|---|
| 115 |
Include %sysconfdir%/cherokee/advanced.conf |
|---|
| 116 |
|
|---|
| 117 |
## |
|---|
| 118 |
## Include the module configuration: |
|---|
| 119 |
## |
|---|
| 120 |
Include %sysconfdir%/cherokee/mods-enabled |
|---|
| 121 |
|
|---|
| 122 |
## |
|---|
| 123 |
## Include the virtual host configuration: |
|---|
| 124 |
## |
|---|
| 125 |
Include %sysconfdir%/cherokee/sites-enabled |
|---|
| 126 |
|
|---|