forked from ApacheExpress/ApacheExpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache-brew.conf
147 lines (116 loc) · 4.61 KB
/
apache-brew.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#ServerRoot "/usr"
Listen 8042
PidFile "httpd.pid"
ServerAdmin [email protected]
ServerName localhost:8042
# Modules (absolute refs so that our .libs can be relative!)
LoadModule authz_core_module /usr/local/opt/httpd24/libexec/mod_authz_core.so
LoadModule filter_module /usr/local/opt/httpd24/libexec/mod_filter.so
LoadModule mime_module /usr/local/opt/httpd24/libexec/mod_mime.so
LoadModule log_config_module /usr/local/opt/httpd24/libexec/mod_log_config.so
LoadModule env_module /usr/local/opt/httpd24/libexec/mod_env.so
LoadModule setenvif_module /usr/local/opt/httpd24/libexec/mod_setenvif.so
LoadModule version_module /usr/local/opt/httpd24/libexec/mod_version.so
LoadModule unixd_module /usr/local/opt/httpd24/libexec/mod_unixd.so
LoadModule autoindex_module /usr/local/opt/httpd24/libexec/mod_autoindex.so
LoadModule negotiation_module /usr/local/opt/httpd24/libexec/mod_negotiation.so
LoadModule dir_module /usr/local/opt/httpd24/libexec/mod_dir.so
LoadModule alias_module /usr/local/opt/httpd24/libexec/mod_alias.so
#LoadModule hfs_apple_module /usr/local/opt/httpd24/libexec/mod_hfs_apple.so
LoadModule sed_module /usr/local/opt/httpd24/libexec/mod_sed.so
#LoadModule authn_file_module /usr/local/opt/httpd24/libexec/mod_authn_file.so
#LoadModule authn_core_module /usr/local/opt/httpd24/libexec/mod_authn_core.so
#LoadModule authz_host_module /usr/local/opt/httpd24/libexec/mod_authz_host.so
#LoadModule authz_groupfile_module /usr/local/opt/httpd24/libexec/mod_authz_groupfile.so
#LoadModule authz_user_module /usr/local/opt/httpd24/libexec/mod_authz_user.so
#LoadModule access_compat_module /usr/local/opt/httpd24/libexec/mod_access_compat.so
#LoadModule auth_basic_module /usr/local/opt/httpd24/libexec/mod_auth_basic.so
#LoadModule reqtimeout_module /usr/local/opt/httpd24/libexec/mod_reqtimeout.so
#LoadModule headers_module /usr/local/opt/httpd24/libexec/mod_headers.so
#LoadModule slotmem_shm_module /usr/local/opt/httpd24/libexec/mod_slotmem_shm.so
#LoadModule status_module /usr/local/opt/httpd24/libexec/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/local/opt/httpd24/libexec/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>