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;
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
52 # ----------------------------------------------------------------------------------
53 # System config CGI scripts go here
54 # ----------------------------------------------------------------------------------
55 Alias /cgi-bin/ "/openils/var/cgi-bin/"
56 <Directory "/openils/var/cgi-bin">
57 AddHandler cgi-script .cgi .pl
63 Options FollowSymLinks ExecCGI Indexes
68 # ----------------------------------------------------------------------------------
69 # OPTIONAL: Set up image caching - some of these options only work with apache2.2
70 # ----------------------------------------------------------------------------------
71 # XXX This is no longer needed with built-in added content image caching
72 #CacheRoot "/opt/cache/"
73 #CacheEnable disk /opac/extras/jacket/
74 #CacheMaxFileSize 1073741824
75 #CacheIgnoreCacheControl On
78 #CacheIgnoreNoLastMod On
80 #CacheLastModifiedFactor 0.5
81 #CacheDefaultExpire 604800
84 # ----------------------------------------------------------------------------------
85 # OPTIONAL: Set how long the client will cache our content. Change to suit
86 # ----------------------------------------------------------------------------------
88 ExpiresDefault A2592000
89 ExpiresByType text/html A64800
90 ExpiresByType application/xhtml+xml A64800
91 ExpiresByType application/x-javascript A64800
92 ExpiresByType text/css A3000
97 # ----------------------------------------------------------------------------------
98 # Set up our main virtual host
99 # ----------------------------------------------------------------------------------
102 ServerName localhost:80
103 ServerAlias 127.0.0.1:80
104 DocumentRoot /openils/var/web/
105 DirectoryIndex index.xml index.html
106 # - absorb the shared virtual host settings
107 Include eg_vhost.conf
114 # ----------------------------------------------------------------------------------
115 # Set up our SSL virtual host
116 # ----------------------------------------------------------------------------------
118 NameVirtualHost *:443
120 DocumentRoot "/openils/var/web"
121 ServerName localhost:443
122 ServerAlias 127.0.0.1:443
124 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
126 # If you don't have an SSL cert, you can create self-signed
127 # certificate and key with:
128 # openssl req -new -x509 -nodes -out server.crt -keyout server.key
129 SSLCertificateFile ssl/server.crt
130 SSLCertificateKeyFile ssl/server.key
132 # - absorb the shared virtual host settings
133 Include eg_vhost.conf
135 # help IE along with SSL pages
136 BrowserMatch ".*MSIE.*" \
137 nokeepalive ssl-unclean-shutdown \
138 downgrade-1.0 force-response-1.0