1 # :vim set syntax apache
5 CustomLog /var/log/apache2/access.log combined
6 ErrorLog /var/log/apache2/error.log
8 # CustomLog "|/usr/bin/logger -p local7.info" common
9 # ErrorLog syslog:local7
12 # ----------------------------------------------------------------------------------
14 # ----------------------------------------------------------------------------------
17 SetEnv PERL5LIB /openils/lib/perl5
18 PerlRequire /etc/apache2/startup.pl
19 PerlChildInitHandler OpenILS::WWW::Reporter::child_init
20 PerlChildInitHandler OpenILS::WWW::SuperCat::child_init
21 PerlChildInitHandler OpenILS::WWW::AddedContent::child_init
22 PerlChildInitHandler OpenILS::WWW::PasswordReset::child_init
24 # ----------------------------------------------------------------------------------
25 # Set some defaults for our working directories
26 # ----------------------------------------------------------------------------------
27 <Directory /openils/var/web>
33 # ----------------------------------------------------------------------------------
35 # ----------------------------------------------------------------------------------
36 <Directory /openils/var/web/xul>
37 Options Indexes FollowSymLinks
44 # ----------------------------------------------------------------------------------
45 # Remove the language portion from the URL
46 # ----------------------------------------------------------------------------------
47 AliasMatch ^/opac/.*/skin/(.*)/(.*)/(.*) /openils/var/web/opac/skin/$1/$2/$3
48 AliasMatch ^/opac/.*/extras/slimpac/(.*) /openils/var/web/opac/extras/slimpac/$1
49 AliasMatch ^/opac/.*/extras/selfcheck/(.*) /openils/var/web/opac/extras/selfcheck/$1
53 # ----------------------------------------------------------------------------------
54 # System config CGI scripts go here
55 # ----------------------------------------------------------------------------------
56 Alias /cgi-bin/offline/ "/openils/var/cgi-bin/offline/"
57 <Directory "/openils/var/cgi-bin/offline">
58 AddHandler cgi-script .cgi .pl
64 Options FollowSymLinks ExecCGI Indexes
68 # ----------------------------------------------------------------------------------
70 # ----------------------------------------------------------------------------------
71 Alias /updates/ "/openils/var/updates/pub/"
72 <Directory "/openils/var/updates/pub">
79 <Files manualupdate.html>
92 # ----------------------------------------------------------------------------------
93 # OPTIONAL: Set how long the client will cache our content. Change to suit
94 # ----------------------------------------------------------------------------------
96 ExpiresDefault "access plus 1 month"
97 ExpiresByType text/html "access plus 18 hours"
98 ExpiresByType application/xhtml+xml "access plus 18 hours"
99 ExpiresByType application/x-javascript "access plus 18 hours"
100 ExpiresByType application/javascript "access plus 18 hours"
101 ExpiresByType text/css "access plus 50 minutes"
103 # ----------------------------------------------------------------------------------
104 # Set up our SSL virtual host
105 # ----------------------------------------------------------------------------------
107 NameVirtualHost *:443
109 DocumentRoot "/openils/var/web"
110 ServerName localhost:443
111 ServerAlias 127.0.0.1:443
113 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
115 # If you don't have an SSL cert, you can create self-signed
116 # certificate and key with:
117 # openssl req -new -x509 -nodes -out server.crt -keyout server.key
118 SSLCertificateFile ssl/server.crt
119 SSLCertificateKeyFile ssl/server.key
121 # - absorb the shared virtual host settings
122 Include eg_vhost.conf
124 # help IE along with SSL pages
125 SetEnvIf User-Agent ".*MSIE [1-5].*" \
126 nokeepalive ssl-unclean-shutdown \
127 downgrade-1.0 force-response-1.0
129 SetEnvIf User-Agent ".*MSIE [6-9].*" \
134 # ----------------------------------------------------------------------------------
135 # Set up our main virtual host
136 # Port 80 comes after 443 to avoid "unknown protocol speaking not SSL to HTTPS port!?"
137 # errors, per http://wiki.apache.org/httpd/InternalDummyConnection
138 # ----------------------------------------------------------------------------------
140 # Commented to avoid warnings from duplicate "NameVirtualHost: *80" directives
141 #NameVirtualHost *:80
143 ServerName localhost:80
144 ServerAlias 127.0.0.1:80
145 DocumentRoot /openils/var/web/
146 DirectoryIndex index.xml index.html index.xhtml
147 # - absorb the shared virtual host settings
148 Include eg_vhost.conf