]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/apache/eg.conf
Patch from Dan Scott to make the slimpac I18N friendly(-ish):
[working/Evergreen.git] / Open-ILS / examples / apache / eg.conf
1 # :vim set syntax apache
2
3 LogLevel debug
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 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
23
24 # ----------------------------------------------------------------------------------
25 # Set some defaults for our working directories
26 # ----------------------------------------------------------------------------------
27 <Directory /openils/var/web>
28     Order allow,deny
29     Allow from all
30 </Directory>
31
32
33 # ----------------------------------------------------------------------------------
34 # XUL directory
35 # ----------------------------------------------------------------------------------
36 <Directory /openils/var/web/xul>
37    Options Indexes FollowSymLinks
38    AllowOverride None
39    Order allow,deny
40    Allow from all
41 </Directory>
42
43
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
50
51
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
58         AllowOverride None
59         Options None
60         Order deny,allow
61         Deny from all
62         Allow from 10.0.0.0/8
63         Options FollowSymLinks ExecCGI Indexes
64 </Directory>
65
66
67
68 # ----------------------------------------------------------------------------------
69 # OPTIONAL: Set up image caching - some of these options only work with apache2.2
70 # ----------------------------------------------------------------------------------
71 CacheRoot "/opt/cache/"
72 CacheEnable disk /opac/extras/jacket/
73 CacheMaxFileSize 1073741824
74 CacheIgnoreCacheControl On
75 CacheStorePrivate On
76 CacheStoreNoStore On
77 CacheIgnoreNoLastMod On
78 CacheMaxExpire 86400
79 CacheLastModifiedFactor 0.5
80 CacheDefaultExpire 604800
81
82
83 # ----------------------------------------------------------------------------------
84 # OPTIONAL: Set how long the client will cache our content.  Change to suit
85 # ----------------------------------------------------------------------------------
86 ExpiresActive On
87 ExpiresDefault A2592000
88 ExpiresByType text/html A64800
89 ExpiresByType application/xhtml+xml A64800
90 ExpiresByType application/x-javascript A64800
91 ExpiresByType text/css A3000
92
93
94
95
96 # ----------------------------------------------------------------------------------
97 # Set up our main virtual host
98 # ----------------------------------------------------------------------------------
99 NameVirtualHost *:80
100 <VirtualHost *:80>
101         ServerName localhost:80
102         ServerAlias 127.0.0.1:80
103         DocumentRoot /openils/var/web/
104         DirectoryIndex index.xml index.html
105     # - absorb the shared virtual host settings
106     Include eg_vhost.conf
107 </VirtualHost>
108
109
110
111
112
113 # ----------------------------------------------------------------------------------
114 # Set up our SSL virtual host
115 # ----------------------------------------------------------------------------------
116 Listen 443
117 NameVirtualHost *:443
118 <VirtualHost *:443>
119         DocumentRoot "/openils/var/web"
120         ServerName localhost:443
121         ServerAlias 127.0.0.1:443
122         SSLEngine on
123         SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
124
125     # If you don't have an SSL cert, you can create self-signed 
126     # certificate and key with:
127     # openssl req -new -x509 -nodes -out server.crt -keyout server.key
128         SSLCertificateFile ssl/server.crt
129         SSLCertificateKeyFile ssl/server.key
130
131     # - absorb the shared virtual host settings
132     Include eg_vhost.conf
133
134     # help IE along with SSL pages
135     BrowserMatch ".*MSIE.*" \
136         nokeepalive ssl-unclean-shutdown \
137         downgrade-1.0 force-response-1.0
138
139 </VirtualHost>
140
141