-# $Id: config,v 1.1.2.1 2006/11/11 12:52:06 zak Exp $
+# $Id: config,v 1.1.2.2 2009/01/18 03:41:13 ianb Exp $
# System configuration file for mir-setup script
APACHECONFDIR=/etc/apache2/mir-sites
APACHECTL=/usr/sbin/apache2ctl
-WEBAPPSDIR=/var/lib/tomcat4/webapps
-TOMCATSCRIPT=/etc/init.d/tomcat4
-TOMCATUSER=tomcat4
+WEBAPPSDIR=/var/lib/tomcat5.5/webapps
+TOMCATSCRIPT=/etc/init.d/tomcat5.5
+TOMCATUSER=tomcat55
# May be overridden
-if [ -z "$TOMCATGROUP" ]; then TOMCATGROUP=tomcat4; fi
+if [ -z "$TOMCATGROUP" ]; then TOMCATGROUP=tomcat55; fi
# Include environment settings
source "$CONFDIR/env"
-export TOMCAT_HOME=/var/lib/tomcat4
+export TOMCAT_HOME=/var/lib/tomcat5.5
export JAI_HOME=/usr/local/lib/jai-1_1_2_01/lib
export JAI_IIO_HOME=/usr/local/lib/jai_imageio-1_0_01/lib
export CLASSPATH=.:$JAI_IIO_HOME/clibwrapper_jiio.jar:$JAI_IIO_HOME/jai_imageio.jar:$JAI_HOME/jai_core.jar:$JAI_HOME/jai_codec.jar:$JAI_HOME/mlibwrapper_jai.jar:/usr/share/java:$CLASSPATH
ServerAdmin $USER@$FQDN
DocumentRoot $PRODUCTIONDIR
ServerName $FQDN
+ ServerAlias $MIRRORFQDN
ServerAlias $ALIAS
- CustomLog /var/log/apache2/$SITE.log combined
+ CustomLog /var/log/apache2/$SITE.log anon
# Back end should only be accessed via SSL; bounce to enforce this
Redirect /$SITE/servlet/Mir https://$SECUREFQDN/$SITE/servlet/Mir
-
- <Location /$SITE>
- JkUriSet worker ajp13:localhost:8009
- </Location>
+
+ JkMount /$SITE/* ajp13_worker
<Directory $PRODUCTIONDIR>
Options Indexes IncludesNoExec FollowSymLinks MultiViews
IndexOptions +SuppressHTMLPreamble +SuppressDescription
Header append Vary User-Agent env=!dont-vary
</Location>
</VirtualHost>
+
+Include /etc/apache2/mir-sites/ssl-dedicated/$SITE.conf
ServerAdmin $USER@$FQDN
DocumentRoot $PRODUCTIONDIR
ServerName $SECUREFQDN
+ ServerAlias $MIRRORFQDN
+ ServerAlias $ALIAS
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/$SECUREFQDN.crt
SSLCertificateKeyFile /etc/apache2/ssl/$SECUREFQDN.key
- <Location /$SITE>
- JkUriSet worker ajp13:localhost:8009
- </Location>
+ CustomLog /var/log/apache2/$SITE-ssl.log anon
+
+ JkMount /$SITE/* ajp13_worker
<Directory $PRODUCTIONDIR>
Options Indexes IncludesNoExec FollowSymLinks MultiViews
IndexOptions +SuppressHTMLPreamble +SuppressDescription
# for a canonical host which has a dedicated IP address. If your
# site has its own IP, this can be the same as your ususl hostname.
- <Location /$SITE>
- JkUriSet worker ajp13:localhost:8009
- </Location>
+ JkMount /$SITE/* ajp13_worker
--- /dev/null
+# $Id: config,v 1.1.2.1 2009/01/18 03:41:13 ianb Exp $
+
+# System configuration file for mir-setup script
+
+# $SITE = short site name, eg "uk"
+# $FQDN = long site name, eg "www.indymedia.org.uk"
+
+# Main install directory for site
+INSTALLDIR=/mir/$SITE
+
+# Directory for produced files (HTML, media etc)
+PRODUCTIONDIR=/imc/mir/$SITE
+
+# Database name
+DATABASE=$SITE
+
+# CVS source for Mir
+MIRCVSROOT=:pserver:anonymous@cvs.codecoop.org:/cvsroot/mir
+
+if [ -z "$MIRVERSION" ]; then MIRVERSION=MIR_1_1; fi
+
+
+# System-wide Postgres, Apache and Tomcat stuff
+
+# Files in this directory should all be included by the main Apache config
+# file with a wildcard
+APACHECONFDIR=/etc/apache2/mir-sites
+
+APACHECTL=/usr/sbin/apache2ctl
+WEBAPPSDIR=/var/lib/tomcat4/webapps
+TOMCATSCRIPT=/etc/init.d/tomcat4
+TOMCATUSER=tomcat4
+
+# May be overridden
+if [ -z "$TOMCATGROUP" ]; then TOMCATGROUP=tomcat4; fi
+
+# Include environment settings
+source "$CONFDIR/env"
--- /dev/null
+export TOMCAT_HOME=/var/lib/tomcat4
+export JAI_HOME=/usr/local/lib/jai-1_1_2_01/lib
+export JAI_IIO_HOME=/usr/local/lib/jai_imageio-1_0_01/lib
+export CLASSPATH=.:$JAI_IIO_HOME/clibwrapper_jiio.jar:$JAI_IIO_HOME/jai_imageio.jar:$JAI_HOME/jai_core.jar:$JAI_HOME/jai_codec.jar:$JAI_HOME/mlibwrapper_jai.jar:/usr/share/java:$CLASSPATH
+export LD_LIBRARY_PATH=$JAI_IIO_HOME:$JAI_HOME:$LD_LIBRARY_PATH
--- /dev/null
+# Editor: vim:syn=apache
+# $FQDN
+<VirtualHost *:80>
+ ServerAdmin $USER@$FQDN
+ DocumentRoot $PRODUCTIONDIR
+ ServerName $FQDN
+ ServerAlias $ALIAS
+
+ CustomLog /var/log/apache2/$SITE.log combined
+
+# Back end should only be accessed via SSL; bounce to enforce this
+ Redirect /$SITE/servlet/Mir https://$SECUREFQDN/$SITE/servlet/Mir
+
+ <Location /$SITE>
+ JkUriSet worker ajp13:localhost:8009
+ </Location>
+ <Directory $PRODUCTIONDIR>
+ Options Indexes IncludesNoExec FollowSymLinks MultiViews
+ IndexOptions +SuppressHTMLPreamble +SuppressDescription
+ AddHandler server-parsed .html
+ AddType 'text/html; charset=utf-8' .html
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+ # Apache gzip compression
+ <Location />
+ # This is taken from here:
+ # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
+ # Insert filter
+ SetOutputFilter DEFLATE
+ # Netscape 4.x has some problems...
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+ # Netscape 4.06-4.08 have some more problems
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+ # MSIE masquerades as Netscape, but it is fine
+ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+ # Don't compress images
+ SetEnvIfNoCase Request_URI \
+ \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+ # Make sure proxies don't deliver the wrong content
+ Header append Vary User-Agent env=!dont-vary
+ </Location>
+</VirtualHost>
--- /dev/null
+# Editor: vim:syn=apache
+# $SECUREFQDN (SSL)
+<VirtualHost $SECUREFQDN:443>
+ ServerAdmin $USER@$FQDN
+ DocumentRoot $PRODUCTIONDIR
+ ServerName $SECUREFQDN
+
+ SSLEngine on
+ SSLCertificateFile /etc/apache2/ssl/$SECUREFQDN.crt
+ SSLCertificateKeyFile /etc/apache2/ssl/$SECUREFQDN.key
+
+ <Location /$SITE>
+ JkUriSet worker ajp13:localhost:8009
+ </Location>
+ <Directory $PRODUCTIONDIR>
+ Options Indexes IncludesNoExec FollowSymLinks MultiViews
+ IndexOptions +SuppressHTMLPreamble +SuppressDescription
+ AddHandler server-parsed .html
+ AddType 'text/html; charset=utf-8' .html
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+ # Apache gzip compression
+ <Location />
+ # This is taken from here:
+ # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
+ # Insert filter
+ SetOutputFilter DEFLATE
+ # Netscape 4.x has some problems...
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+ # Netscape 4.06-4.08 have some more problems
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+ # MSIE masquerades as Netscape, but it is fine
+ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+ # Don't compress images
+ SetEnvIfNoCase Request_URI \
+ \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+ # Make sure proxies don't deliver the wrong content
+ Header append Vary User-Agent env=!dont-vary
+ </Location>
+</VirtualHost>
--- /dev/null
+# Editor: vim:syn=apache
+# $FQDN
+
+# This should be included within the SSL virtual host definition
+# for a canonical host which has a dedicated IP address. If your
+# site has its own IP, this can be the same as your ususl hostname.
+
+ <Location /$SITE>
+ JkUriSet worker ajp13:localhost:8009
+ </Location>