]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/apache/eg.conf
updated some wording
[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
49
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
56         AllowOverride None
57         Options None
58         Order deny,allow
59         Deny from all
60         Allow from 10.0.0.0/8
61         Options FollowSymLinks ExecCGI Indexes
62 </Directory>
63
64
65
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
73 CacheStorePrivate On
74 CacheStoreNoStore On
75 CacheIgnoreNoLastMod On
76 CacheMaxExpire 86400
77 CacheLastModifiedFactor 0.5
78 CacheDefaultExpire 604800
79
80
81 # ----------------------------------------------------------------------------------
82 # OPTIONAL: Set how long the client will cache our content.  Change to suit
83 # ----------------------------------------------------------------------------------
84 ExpiresActive On
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
90
91
92
93
94 # ----------------------------------------------------------------------------------
95 # Set up our main virtual host
96 # ----------------------------------------------------------------------------------
97 NameVirtualHost *:80
98 <VirtualHost *:80>
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
105 </VirtualHost>
106
107
108
109
110
111 # ----------------------------------------------------------------------------------
112 # Set up our SSL virtual host
113 # ----------------------------------------------------------------------------------
114 Listen 443
115 NameVirtualHost *:443
116 <VirtualHost *:443>
117         DocumentRoot "/openils/var/web"
118         ServerName localhost:443
119         ServerAlias 127.0.0.1:443
120         SSLEngine on
121         SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
122
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
128
129     # - absorb the shared virtual host settings
130     Include eg_vhost.conf
131 </VirtualHost>
132
133