2013-05-01 16:03:48 +02:00
|
|
|
# Example Kore configuration
|
|
|
|
|
|
|
|
# Server configuration.
|
2013-05-04 22:18:27 +02:00
|
|
|
bind 10.211.55.3 443
|
2013-06-05 09:47:08 +02:00
|
|
|
certfile /etc/kore/server.crt
|
|
|
|
certkey /etc/kore/server.key
|
2013-06-05 09:29:06 +02:00
|
|
|
|
|
|
|
# The path worker processes will chroot too after starting.
|
2013-05-31 00:06:54 +02:00
|
|
|
chroot /home/joris/src/kore
|
2013-06-05 09:29:06 +02:00
|
|
|
|
|
|
|
# Worker processes will run as the specified user.
|
2013-05-04 22:18:27 +02:00
|
|
|
runas joris
|
2013-06-05 09:29:06 +02:00
|
|
|
|
|
|
|
# Set workers to the amount of CPU's available in your system,
|
|
|
|
# kore will automatically distribute all workers on them.
|
|
|
|
workers 2
|
|
|
|
|
|
|
|
# Store the main process its pid in this file.
|
2013-06-04 16:53:54 +02:00
|
|
|
#pidfile /var/run/kore.pid
|
2013-05-01 16:03:48 +02:00
|
|
|
|
2013-06-05 09:29:06 +02:00
|
|
|
# The onload function is called everytime the module is loaded or reloaded.
|
|
|
|
#onload myinit
|
|
|
|
|
|
|
|
# Specifies what module to be loaded.
|
2013-05-01 16:59:13 +02:00
|
|
|
load example/example.module
|
2013-05-01 16:03:48 +02:00
|
|
|
|
2013-06-05 09:29:06 +02:00
|
|
|
# Domain configuration
|
|
|
|
#
|
|
|
|
# Each domain configuration starts with listing what domain
|
|
|
|
# the directives that follow are to be applied upon.
|
|
|
|
#
|
2013-06-05 09:30:04 +02:00
|
|
|
# Additionally you can specify the following in a domain configuration:
|
2013-06-05 09:29:06 +02:00
|
|
|
# - Nothing yet
|
|
|
|
#
|
|
|
|
# Handlers
|
|
|
|
#
|
|
|
|
# Handlers are either static (for fixed paths) or dynamic.
|
|
|
|
# Dynamic handlers take a POSIX regular expression as its path.
|
|
|
|
#
|
|
|
|
# Syntax:
|
|
|
|
# handler path module_callback
|
|
|
|
|
|
|
|
# Example domain that responds to 10.211.55.33.
|
2013-05-02 13:30:13 +02:00
|
|
|
domain 10.211.55.3
|
2013-05-29 14:42:40 +02:00
|
|
|
static /css/style.css serve_style_css
|
|
|
|
static / serve_index
|
|
|
|
dynamic ^/[a-z0-9_]*$ serve_profile
|
2013-06-05 09:29:06 +02:00
|
|
|
|
|
|
|
# Another domain that responds to foo.bar.
|
|
|
|
domain foo.bar
|
|
|
|
dynamic ^/*$ serve_foobar
|