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
50 # ----------------------------------------------------------------------------------
51 # System config CGI scripts go here
52 # ----------------------------------------------------------------------------------
53 Alias /cgi-bin/ "/openils/var/cgi-bin/"
54 <Directory "/openils/var/cgi-bin">
55 AddHandler cgi-script .cgi .pl
61 Options FollowSymLinks ExecCGI Indexes
66 # ----------------------------------------------------------------------------------
67 # OPTIONAL: Set up image caching - some of these options only work with apache2.2
68 # ----------------------------------------------------------------------------------
69 CacheRoot "/opt/cache/"
70 CacheEnable disk /opac/extras/jacket/
71 CacheMaxFileSize 1073741824
72 CacheIgnoreCacheControl On
75 CacheIgnoreNoLastMod On
77 CacheLastModifiedFactor 0.5
78 CacheDefaultExpire 604800
81 # ----------------------------------------------------------------------------------
82 # OPTIONAL: Set how long the client will cache our content. Change to suit
83 # ----------------------------------------------------------------------------------
85 ExpiresDefault A2592000
86 ExpiresByType text/html A64800
87 ExpiresByType application/xhtml+xml A64800
88 ExpiresByType application/x-javascript A64800
89 ExpiresByType text/css A3000
94 # ----------------------------------------------------------------------------------
95 # Set up our main virtual host
96 # ----------------------------------------------------------------------------------
99 ServerName localhost:80
100 ServerAlias 127.0.0.1:80
101 DocumentRoot /openils/var/web/
102 DirectoryIndex index.xml index.html
103 # - absorb the shared virtual host settings
104 Include eg_vhost.conf
111 # ----------------------------------------------------------------------------------
112 # Set up our SSL virtual host
113 # ----------------------------------------------------------------------------------
115 NameVirtualHost *:443
117 DocumentRoot "/openils/var/web"
118 ServerName localhost:443
119 ServerAlias 127.0.0.1:443
121 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
123 # If you don't have an SSL cert, you can create self-signed
124 # certificate and key with:
125 # openssl req -new -x509 -nodes -out server.crt -keyout server.key
126 SSLCertificateFile ssl/server.crt
127 SSLCertificateKeyFile ssl/server.key
129 # - absorb the shared virtual host settings
130 Include eg_vhost.conf