Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
#ServerRoot "/usr"
Listen 8042
PidFile ""
ServerName localhost:8042
# Modules (absolute refs so that our .libs can be relative!)
LoadModule authz_core_module /usr/libexec/apache2/
LoadModule filter_module /usr/libexec/apache2/
LoadModule mime_module /usr/libexec/apache2/
LoadModule log_config_module /usr/libexec/apache2/
LoadModule env_module /usr/libexec/apache2/
LoadModule setenvif_module /usr/libexec/apache2/
LoadModule version_module /usr/libexec/apache2/
LoadModule unixd_module /usr/libexec/apache2/
LoadModule autoindex_module /usr/libexec/apache2/
LoadModule negotiation_module /usr/libexec/apache2/
LoadModule dir_module /usr/libexec/apache2/
LoadModule alias_module /usr/libexec/apache2/
LoadModule hfs_apple_module /usr/libexec/apache2/
LoadModule sed_module /usr/libexec/apache2/
#LoadModule authn_file_module /usr/libexec/apache2/
#LoadModule authn_core_module /usr/libexec/apache2/
#LoadModule authz_host_module /usr/libexec/apache2/
#LoadModule authz_groupfile_module /usr/libexec/apache2/
#LoadModule authz_user_module /usr/libexec/apache2/
#LoadModule access_compat_module /usr/libexec/apache2/
#LoadModule auth_basic_module /usr/libexec/apache2/
#LoadModule reqtimeout_module /usr/libexec/apache2/
#LoadModule headers_module /usr/libexec/apache2/
#LoadModule slotmem_shm_module /usr/libexec/apache2/
#LoadModule status_module /usr/libexec/apache2/
# Our modules
LoadModule swift_module .libs/
LoadSwiftModule ApacheMain .libs/
LoadSwiftModule ApacheMain .libs/
LoadSwiftModule ApacheMain .libs/
<Location /helloworld>
SetHandler helloworld
SetSwiftConfigValue answer 42
<Location />
AddType application/x-zeezide-mustache .mustache
AddHandler de.zeezide.mustache .mustache
<LocationMatch /server/*>
SetHandler de.zeezide.ApacheExpress
<LocationMatch /connect/*>
SetHandler de.zeezide.ApacheExpress
<LocationMatch /express/*>
SetHandler de.zeezide.ApacheExpress
<LocationMatch /todomvc/*>
SetHandler de.zeezide.ApacheExpress
# Database Stuff
# Enable this for Database support, but you also need to fix the SQLite3 DB path
# below.
#LoadModule dbd_module /usr/libexec/apache2/
<Location /database>
SetHandler database
<IfModule dbd_module>
DBDriver sqlite3
DBDParams "/Users/helge/dev/Swift/mod_swift-helje5/data/testdb.sqlite3"
# must be absolute, unfortunately
#DBDriver pgsql
#DBDParams "host= port=5432 dbname=OGo user=OGo password=OGo"
# Connection Pool Management
DBDMin 1
DBDKeep 2
DBDMax 10
DBDExptime 60
# Standard Stuff
AddOutputFilter Sed html
<Directory />
# careful, we grant everything in here!
AllowOverride none
Require all granted
SetSwiftConfigValue answer 1337
DocumentRoot "DocRoot"
<Directory "DocRoot">
Options FollowSymLinks Multiviews
MultiviewsMatch Any
# None, All, or AllowOverride FileInfo AuthConfig Limit
AllowOverride All
Require all granted
<IfModule dir_module>
DirectoryIndex index.html
<FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
Require all denied
<Files "rsrc">
Require all denied
<DirectoryMatch ".*\.\.namedfork">
Require all denied
ErrorLog /dev/stderr
TransferLog /dev/stdout
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
# CustomLog "/dev/stdout" combined
<IfModule mime_module>
TypesConfig /private/etc/apache2/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz