]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/apache_24/eg.conf.in
Remove JSPAC-oriented PasswordReset.pm interface
[working/Evergreen.git] / Open-ILS / examples / apache_24 / eg.conf.in
1 # :vim set syntax apache
2
3 LogLevel info 
4 # - log locally
5 # CustomLog /var/log/apache2/access.log combined
6 # ErrorLog /var/log/apache2/error.log
7 # - log to syslog 
8 CustomLog "|/usr/bin/logger -p local7.info" common
9 ErrorLog syslog:local7
10
11
12 # ----------------------------------------------------------------------------------
13 # Set up Perl 
14 # ----------------------------------------------------------------------------------
15
16 # - needed by CGIs
17 PerlRequire /etc/apache2/eg_startup
18 PerlChildInitHandler OpenILS::WWW::Reporter::child_init
19 PerlChildInitHandler OpenILS::WWW::SuperCat::child_init
20 PerlChildInitHandler OpenILS::WWW::AddedContent::child_init
21 PerlChildInitHandler OpenILS::WWW::AutoSuggest::child_init
22
23 # ----------------------------------------------------------------------------------
24 # Set some defaults for our working directories
25 # ----------------------------------------------------------------------------------
26 <Directory @localstatedir@/web>
27    Require all granted
28 </Directory>
29
30
31 # ----------------------------------------------------------------------------------
32 # XUL directory
33 # ----------------------------------------------------------------------------------
34 <Directory @localstatedir@/web/xul>
35    Options Indexes FollowSymLinks
36    AllowOverride None
37    Require all granted
38 </Directory>
39
40
41 # ----------------------------------------------------------------------------------
42 # Remove the language portion from the URL
43 # ----------------------------------------------------------------------------------
44 AliasMatch ^/opac/.*/skin/(.*)/(.*)/(.*) @localstatedir@/web/opac/skin/$1/$2/$3
45 AliasMatch ^/opac/.*/extras/slimpac/(.*) @localstatedir@/web/opac/extras/slimpac/$1
46 AliasMatch ^/opac/.*/extras/selfcheck/(.*) @localstatedir@/web/opac/extras/selfcheck/$1
47
48
49
50 # ----------------------------------------------------------------------------------
51 # System config CGI scripts go here
52 # ----------------------------------------------------------------------------------
53 Alias /cgi-bin/offline/ "@localstatedir@/cgi-bin/offline/"
54 <Directory "@localstatedir@/cgi-bin/offline">
55         AddHandler cgi-script .cgi .pl
56         AllowOverride None
57         Options None
58     Require host 10.0.0.0/8
59         Options FollowSymLinks ExecCGI Indexes
60 </Directory>
61
62
63 # ----------------------------------------------------------------------------------
64 # Updates folder
65 # ----------------------------------------------------------------------------------
66 Alias /updates/ "@localstatedir@/updates/pub/"
67 <Directory "@localstatedir@/updates/pub">
68         <Files check>
69                 ForceType cgi-script
70         </Files>
71         <Files update.rdf>
72                 ForceType cgi-script
73         </Files>
74         <Files manualupdate.html>
75                 ForceType cgi-script
76         </Files>
77         <Files download>
78                 ForceType cgi-script
79         </Files>
80         AllowOverride None
81         Options None
82         Options ExecCGI
83     Require all granted
84 </Directory>
85
86
87 # ----------------------------------------------------------------------------------
88 # OPTIONAL: Set how long the client will cache our content.  Change to suit
89 # ----------------------------------------------------------------------------------
90 ExpiresActive On
91 ExpiresDefault "access plus 1 month"
92 ExpiresByType text/html "access plus 18 hours"
93 ExpiresByType application/xhtml+xml "access plus 18 hours"
94 ExpiresByType application/x-javascript "access plus 18 hours"
95 ExpiresByType application/javascript "access plus 18 hours"
96 ExpiresByType text/css "access plus 50 minutes"
97
98 # ----------------------------------------------------------------------------------
99 # Set up our SSL virtual host
100 # ----------------------------------------------------------------------------------
101 #Listen 443
102 NameVirtualHost *:443
103 <VirtualHost *:443>
104         DocumentRoot "@localstatedir@/web"
105         ServerName localhost:443
106         ServerAlias 127.0.0.1:443
107         SSLEngine on
108         SSLHonorCipherOrder On
109         SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
110
111     # If you don't have an SSL cert, you can create self-signed 
112     # certificate and key with:
113     # openssl req -new -x509 -nodes -out server.crt -keyout server.key
114         SSLCertificateFile ssl/server.crt
115         SSLCertificateKeyFile ssl/server.key
116
117     # - absorb the shared virtual host settings
118     Include eg_vhost.conf
119
120     # help IE along with SSL pages
121     SetEnvIf User-Agent ".*MSIE [1-5].*" \
122         nokeepalive ssl-unclean-shutdown \
123         downgrade-1.0 force-response-1.0
124
125     SetEnvIf User-Agent ".*MSIE [6-9].*" \
126         ssl-unclean-shutdown
127
128 </VirtualHost>
129
130 # ----------------------------------------------------------------------------------
131 # Set up our main virtual host
132 # Port 80 comes after 443 to avoid "unknown protocol speaking not SSL to HTTPS port!?" 
133 # errors, per http://wiki.apache.org/httpd/InternalDummyConnection
134 # ----------------------------------------------------------------------------------
135
136 # Commented to avoid warnings from duplicate "NameVirtualHost: *80" directives
137 #NameVirtualHost *:80
138 <VirtualHost *:80>
139         ServerName localhost:80
140         ServerAlias 127.0.0.1:80
141         DocumentRoot @localstatedir@/web/
142         DirectoryIndex index.xml index.html index.xhtml
143     # - absorb the shared virtual host settings
144     Include eg_vhost.conf
145 </VirtualHost>
146