]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/apache_24/websockets/apache2.conf
LP1834208 Removing apache2-websockets
[OpenSRF.git] / examples / apache_24 / websockets / apache2.conf
1 # This is the main Apache 2.4 server configuration file for the OpenSRF
2 # WebSockets gateway.
3
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
8
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}
15
16 DefaultType None
17 HostnameLookups Off
18 ErrorLog ${APACHE_LOG_DIR}/error.log
19 LogLevel warn
20
21 # only affects the initial connection, which should be quick.
22 Timeout 30
23
24 # WebSockets is KeepAlive on steroids
25 KeepAlive Off
26
27 <IfModule mpm_prefork_module>
28     StartServers          5
29     MinSpareServers       5
30     MaxSpareServers      20
31     # use ServerLimit to raise beyond 256
32     MaxClients          256
33     MaxRequestsPerChild   0
34 </IfModule>
35
36 # include the exact mods we need
37 Include mods-available/mime.load
38 Include mods-available/mime.conf
39 # SSL requires mime
40 Include mods-available/ssl.load
41 Include mods-available/ssl.conf
42 Include mods-available/socache_shmcb.load
43
44 LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
45 LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
46 LogFormat "%h %l %u %t \"%r\" %>s %O" common
47 LogFormat "%{Referer}i -> %U" referer
48 LogFormat "%{User-agent}i" agent
49
50 Listen 7682
51 <VirtualHost *:7682>
52     DocumentRoot /var/www
53     ServerName localhost:7682
54     ServerAlias 127.0.0.1:7682
55     SSLEngine on
56     SSLHonorCipherOrder On
57     SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
58
59     # re-use the certs from the main apache instance
60     SSLCertificateFile /etc/apache2/ssl/server.crt
61     SSLCertificateKeyFile /etc/apache2/ssl/server.key
62 </VirtualHost>
63
64