1 # This is the main Apache 2.4 server configuration file for the OpenSRF
4 Include mods-available/mpm_prefork.load
5 Include mods-available/mpm_prefork.conf
6 Include mods-available/access_compat.load
7 Include mods-available/authz_core.load
9 # if we don't want to run as "opensrf", change the LockFile
10 #LockFile ${APACHE_LOCK_DIR}/accept.lock
11 Mutex file:${APACHE_LOCK_DIR} default
12 PidFile ${APACHE_PID_FILE}
13 User ${APACHE_RUN_USER}
14 Group ${APACHE_RUN_GROUP}
18 ErrorLog ${APACHE_LOG_DIR}/error.log
21 # only affects the initial connection, which should be quick.
24 # WebSockets is KeepAlive on steroids
27 <IfModule mpm_prefork_module>
31 # use ServerLimit to raise beyond 256
36 # include the exact mods we need
37 Include mods-available/mime.load
38 Include mods-available/mime.conf
40 Include mods-available/ssl.load
41 Include mods-available/ssl.conf
42 Include mods-available/socache_shmcb.load
43 Include mods-available/websocket.load
45 LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
46 LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
47 LogFormat "%h %l %u %t \"%r\" %>s %O" common
48 LogFormat "%{Referer}i -> %U" referer
49 LogFormat "%{User-agent}i" agent
55 ServerName localhost:7682
56 ServerAlias 127.0.0.1:7682
58 SSLHonorCipherOrder On
59 SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
61 # re-use the certs from the main apache instance
62 SSLCertificateFile /etc/apache2/ssl/server.crt
63 SSLCertificateKeyFile /etc/apache2/ssl/server.key
66 # OpenSRF WebSockets gateway
67 <Location /osrf-websocket-translator>
68 SetHandler websocket-handler
69 WebSocketHandler /usr/lib/apache2/modules/osrf_websocket_translator.so osrf_websocket_init