Permalink
Fetching contributors…
Cannot retrieve contributors at this time
148 lines (116 sloc) 4.35 KB
#ServerRoot "/usr"
Listen 8042
PidFile "httpd.pid"
ServerAdmin me@alwaysrightinstitute.com
ServerName localhost:8042
# Modules (absolute refs so that our .libs can be relative!)
LoadModule authz_core_module /usr/libexec/apache2/mod_authz_core.so
LoadModule filter_module /usr/libexec/apache2/mod_filter.so
LoadModule mime_module /usr/libexec/apache2/mod_mime.so
LoadModule log_config_module /usr/libexec/apache2/mod_log_config.so
LoadModule env_module /usr/libexec/apache2/mod_env.so
LoadModule setenvif_module /usr/libexec/apache2/mod_setenvif.so
LoadModule version_module /usr/libexec/apache2/mod_version.so
LoadModule unixd_module /usr/libexec/apache2/mod_unixd.so
LoadModule autoindex_module /usr/libexec/apache2/mod_autoindex.so
LoadModule negotiation_module /usr/libexec/apache2/mod_negotiation.so
LoadModule dir_module /usr/libexec/apache2/mod_dir.so
LoadModule alias_module /usr/libexec/apache2/mod_alias.so
LoadModule hfs_apple_module /usr/libexec/apache2/mod_hfs_apple.so
LoadModule sed_module /usr/libexec/apache2/mod_sed.so
#LoadModule authn_file_module /usr/libexec/apache2/mod_authn_file.so
#LoadModule authn_core_module /usr/libexec/apache2/mod_authn_core.so
#LoadModule authz_host_module /usr/libexec/apache2/mod_authz_host.so
#LoadModule authz_groupfile_module /usr/libexec/apache2/mod_authz_groupfile.so
#LoadModule authz_user_module /usr/libexec/apache2/mod_authz_user.so
#LoadModule access_compat_module /usr/libexec/apache2/mod_access_compat.so
#LoadModule auth_basic_module /usr/libexec/apache2/mod_auth_basic.so
#LoadModule reqtimeout_module /usr/libexec/apache2/mod_reqtimeout.so
#LoadModule headers_module /usr/libexec/apache2/mod_headers.so
#LoadModule slotmem_shm_module /usr/libexec/apache2/mod_slotmem_shm.so
#LoadModule status_module /usr/libexec/apache2/mod_status.so
# Our modules
LoadModule swift_module .libs/mod_swift.so
LoadSwiftModule ApacheMain .libs/mods_baredemo.so
LoadSwiftModule ApacheMain .libs/mods_expressdemo.so
LoadSwiftModule ApacheMain .libs/mods_todomvc.so
<Location /helloworld>
SetHandler helloworld
SetSwiftConfigValue answer 42
</Location>
<Location />
AddType application/x-zeezide-mustache .mustache
AddHandler de.zeezide.mustache .mustache
</Location>
<LocationMatch /server/*>
SetHandler de.zeezide.ApacheExpress
</LocationMatch>
<LocationMatch /connect/*>
SetHandler de.zeezide.ApacheExpress
</LocationMatch>
<LocationMatch /express/*>
SetHandler de.zeezide.ApacheExpress
</LocationMatch>
<LocationMatch /todomvc/*>
SetHandler de.zeezide.ApacheExpress
</LocationMatch>
# Database Stuff
# Enable this for Database support, but you also need to fix the SQLite3 DB path
# below.
#LoadModule dbd_module /usr/libexec/apache2/mod_dbd.so
<Location /database>
SetHandler database
</Location>
<IfModule dbd_module>
DBDriver sqlite3
DBDParams "/Users/helge/dev/Swift/mod_swift-helje5/data/testdb.sqlite3"
# must be absolute, unfortunately
#DBDriver pgsql
#DBDParams "host=127.0.0.1 port=5432 dbname=OGo user=OGo password=OGo"
# Connection Pool Management
DBDMin 1
DBDKeep 2
DBDMax 10
DBDExptime 60
</IfModule>
# Standard Stuff
AddOutputFilter Sed html
<Directory />
# careful, we grant everything in here!
AllowOverride none
Require all granted
SetSwiftConfigValue answer 1337
</Directory>
DocumentRoot "DocRoot"
<Directory "DocRoot">
Options FollowSymLinks Multiviews
MultiviewsMatch Any
# None, All, or AllowOverride FileInfo AuthConfig Limit
AllowOverride All
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
Require all denied
</FilesMatch>
<Files "rsrc">
Require all denied
</Files>
<DirectoryMatch ".*\.\.namedfork">
Require all denied
</DirectoryMatch>
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>
<IfModule mime_module>
TypesConfig /private/etc/apache2/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>