r22125 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22124‎ | r22125 | r22126 >
Date:17:28, 12 May 2007
Author:river
Status:old
Tags:
Comment:
- wikimedia-apache-config-appserver
- wikimedia-task-appserver
These are using Apache 2.2 instead of 1.3 (finally).
Modified paths:
  • /trunk/debs/wikimedia-apache-config-appserver (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/access.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/apache2.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/README.Debian (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/changelog (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/compat (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/conffiles (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/control (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/copyright (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/dirs (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/files (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/postinst (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/postrm (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/preinst (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/prerm (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/debian/rules (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/en2.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/foundation.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/main.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/nonexistent.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/postrewrites.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/redirects.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/remnant.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/wikimedia-ssl-backend.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/wikimedia.conf (added) (history)
  • /trunk/debs/wikimedia-apache-config-appserver/www.wikipedia.conf (added) (history)
  • /trunk/debs/wikimedia-task-appserver (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/README.Debian (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/changelog (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/compat (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/conffiles (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/control (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/copyright (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/dirs (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/files (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/postinst (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/postrm (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/preinst (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/prerm (added) (history)
  • /trunk/debs/wikimedia-task-appserver/debian/rules (added) (history)

Diff [purge]

Index: trunk/debs/wikimedia-task-appserver/debian/control
@@ -0,0 +1,12 @@
 2+Source: wikimedia-task-appserver
 3+Section: unknown
 4+Priority: optional
 5+Maintainer: River Tarnell <river@wikimedia.org>
 6+Standards-Version: 3.6.2
 7+
 8+Package: wikimedia-task-appserver
 9+Architecture: any
 10+Depends: wikimedia-nis-client, wikimedia-apache-config-appserver, apache2-mpm-prefork, librsvg2-bin, dvipng, tetex-bin, ocaml
 11+Description: Wikimedia application server
 12+ This package depends on all packages needed to setup a standard
 13+ application server.
Index: trunk/debs/wikimedia-task-appserver/debian/dirs
Index: trunk/debs/wikimedia-task-appserver/debian/files
@@ -0,0 +1 @@
 2+wikimedia-task-appserver_1.0_amd64.deb unknown optional
Index: trunk/debs/wikimedia-task-appserver/debian/compat
@@ -0,0 +1 @@
 2+4
Index: trunk/debs/wikimedia-task-appserver/debian/postinst
@@ -0,0 +1,62 @@
 2+#! /bin/sh
 3+# postinst script for wikimedia-task-dns-auth
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <postinst> `configure' <most-recently-configured-version>
 11+# * <old-postinst> `abort-upgrade' <new version>
 12+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 13+# <new-version>
 14+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 15+# <failed-install-package> <version> `removing'
 16+# <conflicting-package> <version>
 17+# for details, see http://www.debian.org/doc/debian-policy/ or
 18+# the debian-policy package
 19+#
 20+
 21+case "$1" in
 22+ configure)
 23+ # Add a line to /etc/motd describing the task of this server
 24+ if [ -f /etc/motd.tail ]
 25+ then
 26+ MOTDFILE=/etc/motd.tail
 27+ else
 28+ MOTDFILE=/etc/motd
 29+ fi
 30+
 31+ if ! grep -qs "wikimedia-task-appserver" $MOTDFILE
 32+ then
 33+ echo "$(hostname) is a Wikimedia application server (wikimedia-task-appserver)." >> $MOTDFILE
 34+
 35+ if [ -f /etc/motd.tail ]
 36+ then
 37+ # Update motd
 38+ uname -snrvm > /var/run/motd
 39+ cat /etc/motd.tail >> /var/run/motd
 40+ fi
 41+ fi
 42+
 43+ echo "remember to sync this server before you start it!"
 44+ ;;
 45+
 46+ abort-upgrade|abort-remove|abort-deconfigure)
 47+
 48+ ;;
 49+
 50+ *)
 51+ echo "postinst called with unknown argument \`$1'" >&2
 52+ exit 1
 53+ ;;
 54+esac
 55+
 56+# dh_installdeb will replace this with shell code automatically
 57+# generated by other debhelper scripts.
 58+
 59+#DEBHELPER#
 60+
 61+exit 0
 62+
 63+
Index: trunk/debs/wikimedia-task-appserver/debian/postrm
@@ -0,0 +1,40 @@
 2+#! /bin/sh
 3+# postrm script for wikimedia-base
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <postrm> `remove'
 11+# * <postrm> `purge'
 12+# * <old-postrm> `upgrade' <new-version>
 13+# * <new-postrm> `failed-upgrade' <old-version>
 14+# * <new-postrm> `abort-install'
 15+# * <new-postrm> `abort-install' <old-version>
 16+# * <new-postrm> `abort-upgrade' <old-version>
 17+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 18+# for details, see http://www.debian.org/doc/debian-policy/ or
 19+# the debian-policy package
 20+
 21+
 22+case "$1" in
 23+ purge)
 24+ ;;
 25+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 26+
 27+
 28+ ;;
 29+
 30+ *)
 31+ echo "postrm called with unknown argument \`$1'" >&2
 32+ exit 1
 33+
 34+esac
 35+
 36+# dh_installdeb will replace this with shell code automatically
 37+# generated by other debhelper scripts.
 38+
 39+#DEBHELPER#
 40+
 41+exit 0
Index: trunk/debs/wikimedia-task-appserver/debian/preinst
@@ -0,0 +1,38 @@
 2+#! /bin/sh
 3+# preinst script for wikimedia-base
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <new-preinst> `install'
 11+# * <new-preinst> `install' <old-version>
 12+# * <new-preinst> `upgrade' <old-version>
 13+# * <old-preinst> `abort-upgrade' <new-version>
 14+#
 15+# for details, see http://www.debian.org/doc/debian-policy/ or
 16+# the debian-policy package
 17+
 18+
 19+case "$1" in
 20+ install|upgrade)
 21+ ;;
 22+
 23+ abort-upgrade)
 24+ ;;
 25+
 26+ *)
 27+ echo "preinst called with unknown argument \`$1'" >&2
 28+ exit 1
 29+ ;;
 30+esac
 31+
 32+# dh_installdeb will replace this with shell code automatically
 33+# generated by other debhelper scripts.
 34+
 35+#DEBHELPER#
 36+
 37+exit 0
 38+
 39+
Index: trunk/debs/wikimedia-task-appserver/debian/prerm
@@ -0,0 +1,58 @@
 2+#! /bin/sh
 3+# prerm script for wikimedia-task-dns-auth
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <prerm> `remove'
 11+# * <old-prerm> `upgrade' <new-version>
 12+# * <new-prerm> `failed-upgrade' <old-version>
 13+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
 14+# * <deconfigured's-prerm> `deconfigure' `in-favour'
 15+# <package-being-installed> <version> `removing'
 16+# <conflicting-package> <version>
 17+# for details, see http://www.debian.org/doc/debian-policy/ or
 18+# the debian-policy package
 19+
 20+
 21+case "$1" in
 22+ remove|deconfigure)
 23+ # Add a line to /etc/motd describing the task of this server
 24+ if [ -f /etc/motd.tail ]
 25+ then
 26+ MOTDFILE=/etc/motd.tail
 27+ else
 28+ MOTDFILE=/etc/motd
 29+ fi
 30+
 31+ sed -i '/is a.*(wikimedia-task-appserver).$/d' $MOTDFILE
 32+
 33+ if [ -f /etc/motd.tail ]
 34+ then
 35+ # Update motd
 36+ uname -snrvm > /var/run/motd
 37+ cat /etc/motd.tail >> /var/run/motd
 38+ fi
 39+
 40+ [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 stop
 41+ ;;
 42+ upgrade)
 43+ ;;
 44+ failed-upgrade)
 45+ ;;
 46+ *)
 47+ echo "prerm called with unknown argument \`$1'" >&2
 48+ exit 1
 49+ ;;
 50+esac
 51+
 52+# dh_installdeb will replace this with shell code automatically
 53+# generated by other debhelper scripts.
 54+
 55+#DEBHELPER#
 56+
 57+exit 0
 58+
 59+
Index: trunk/debs/wikimedia-task-appserver/debian/changelog
@@ -0,0 +1,5 @@
 2+wikimedia-task-appserver (1.0) feisty; urgency=low
 3+
 4+ * Initial release
 5+
 6+ -- River Tarnell <river@wikimedia.org> Sat, 12 May 2007 17:55:31 +0000
Index: trunk/debs/wikimedia-task-appserver/debian/conffiles
Index: trunk/debs/wikimedia-task-appserver/debian/copyright
@@ -0,0 +1 @@
 2+Copyright (c) 2007 River Tarnell <river@wikimedia.org>.
Index: trunk/debs/wikimedia-task-appserver/debian/rules
@@ -0,0 +1,88 @@
 2+#!/usr/bin/make -f
 3+# -*- makefile -*-
 4+# Sample debian/rules that uses debhelper.
 5+# This file was originally written by Joey Hess and Craig Small.
 6+# As a special exception, when this file is copied by dh-make into a
 7+# dh-make output file, you may use that output file without restriction.
 8+# This special exception was added by Craig Small in version 0.37 of dh-make.
 9+
 10+# Uncomment this to turn on verbose mode.
 11+#export DH_VERBOSE=1
 12+
 13+DESTDIR=$(CURDIR)/debian/wikimedia-task-appserver
 14+
 15+CFLAGS = -Wall -g
 16+
 17+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 18+ CFLAGS += -O0
 19+else
 20+ CFLAGS += -O2
 21+endif
 22+
 23+configure: configure-stamp
 24+configure-stamp:
 25+ dh_testdir
 26+ # Add here commands to configure the package.
 27+
 28+ touch configure-stamp
 29+
 30+
 31+build: build-stamp
 32+
 33+build-stamp: configure-stamp
 34+ dh_testdir
 35+
 36+ touch build-stamp
 37+
 38+clean:
 39+ dh_testdir
 40+ dh_testroot
 41+ rm -f build-stamp configure-stamp
 42+
 43+ dh_clean
 44+
 45+install: build
 46+ dh_testdir
 47+ dh_testroot
 48+ dh_clean -k
 49+ dh_installdirs
 50+
 51+ install -d $(DESTDIR)
 52+
 53+# Build architecture-independent files here.
 54+binary-indep: build install
 55+# We have nothing to do by default.
 56+
 57+# Build architecture-dependent files here.
 58+binary-arch: build install
 59+ dh_testdir
 60+ dh_testroot
 61+ dh_installchangelogs
 62+ dh_installdocs
 63+ dh_installexamples
 64+# dh_install
 65+# dh_installmenu
 66+# dh_installdebconf
 67+# dh_installlogrotate
 68+# dh_installemacsen
 69+# dh_installpam
 70+# dh_installmime
 71+# dh_installinit
 72+ dh_installcron
 73+# dh_installinfo
 74+ dh_installman
 75+ dh_link
 76+ dh_strip
 77+ dh_compress
 78+ dh_fixperms
 79+# dh_perl
 80+# dh_python
 81+# dh_makeshlibs
 82+ dh_installdeb
 83+ dh_shlibdeps
 84+ dh_gencontrol
 85+ dh_md5sums
 86+ dh_builddeb
 87+
 88+binary: binary-indep binary-arch
 89+.PHONY: build clean binary-indep binary-arch binary install configure
Property changes on: trunk/debs/wikimedia-task-appserver/debian/rules
___________________________________________________________________
Added: svn:executable
190 + *
Index: trunk/debs/wikimedia-task-appserver/debian/README.Debian
@@ -0,0 +1,5 @@
 2+wikimedia-task-appserver
 3+-----------------------
 4+
 5+This package depends on all packages needed to setup a standard
 6+application server.
Index: trunk/debs/wikimedia-apache-config-appserver/access.conf
@@ -0,0 +1,12 @@
 2+##
 3+## access.conf -- Apache HTTP server configuration file
 4+##
 5+
 6+#
 7+# This is the default file for the AccessConfig directive in httpd.conf.
 8+# It is processed after httpd.conf and srm.conf.
 9+#
 10+# To avoid confusion, it is recommended that you put all of your
 11+# Apache server directives into the httpd.conf file and leave this
 12+# one essentially empty.
 13+#
Index: trunk/debs/wikimedia-apache-config-appserver/apache2.conf
@@ -0,0 +1,336 @@
 2+LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
 3+
 4+ServerRoot "/etc/apache2"
 5+#LockFile /usr/local/apache/logs/httpd.lock
 6+PidFile /var/run/apache2.pid
 7+LockFile /var/lock/apache2/accept.lock
 8+
 9+#ResourceConfig conf/srm.conf
 10+#AccessConfig conf/access.conf
 11+Timeout 200
 12+
 13+# turned off -- brion -2004-01-09
 14+# on for testing -- TS 2005-11-25
 15+# off again, squid doesn't understand the HTTP/1.1 keepalive protocol -- TS
 16+KeepAlive Off
 17+
 18+MaxKeepAliveRequests 150
 19+KeepAliveTimeout 2
 20+
 21+MinSpareServers 5
 22+MaxSpareServers 20
 23+
 24+StartServers 10
 25+
 26+#MaxClients 24
 27+#MaxClients 36
 28+#MaxClients 50
 29+#MaxClients 300
 30+#MaxClients 255
 31+MaxClients 40
 32+
 33+<IfDefine SLOW>
 34+MaxClients 5
 35+</IfDefine>
 36+
 37+#MaxClients 20
 38+
 39+MaxRequestsPerChild 300
 40+
 41+#BindAddress *
 42+
 43+# Disabling to test -- 2003-11-30 BV FIXME
 44+###LoadModule throttle_module libexec/mod_throttle.so
 45+#AddModule mod_throttle.c
 46+
 47+# Disabled, don't think we use this -- TS 2004-08-01
 48+#LoadModule vhost_alias_module libexec/mod_vhost_alias.so
 49+
 50+
 51+Listen 80
 52+
 53+User apache
 54+Group apache
 55+
 56+ServerAdmin brion@wikipedia.org
 57+
 58+ServerTokens Prod
 59+ServerName wikimedia.org
 60+
 61+DocumentRoot "/usr/local/apache/common/docroot/default"
 62+
 63+<Directory />
 64+ Options FollowSymLinks
 65+ AllowOverride None
 66+</Directory>
 67+
 68+<Directory "/usr/local/apache/common/docroot/default">
 69+ Options -Indexes FollowSymLinks MultiViews
 70+ AllowOverride None
 71+
 72+ Order allow,deny
 73+ Allow from all
 74+</Directory>
 75+
 76+
 77+# Expires for static content
 78+# sends max-age and Expires header, time in seconds
 79+#LoadModule expires_module mod_expires.c
 80+#<IfModule mod_expires.c>
 81+ ExpiresActive On
 82+ ExpiresByType image/gif A2592000
 83+ ExpiresByType image/png A2592000
 84+ ExpiresByType image/jpeg A2592000
 85+ ExpiresByType text/css A2592000
 86+ ExpiresByType text/javascript A2592000
 87+ ExpiresByType application/x-javascript A2592000
 88+#</IfModule>
 89+
 90+<IfModule mod_userdir.c>
 91+ UserDir disabled
 92+</IfModule>
 93+
 94+<IfModule mod_dir.c>
 95+ DirectoryIndex index.html
 96+</IfModule>
 97+
 98+AccessFileName .htaccess
 99+
 100+<Files ~ "^\.ht">
 101+ Order allow,deny
 102+ Deny from all
 103+ Satisfy All
 104+</Files>
 105+
 106+UseCanonicalName On
 107+
 108+<IfModule mod_mime.c>
 109+ TypesConfig /etc/mime.types
 110+</IfModule>
 111+
 112+DefaultType application/octet-stream
 113+
 114+HostnameLookups Off
 115+
 116+ErrorLog syslog
 117+
 118+#LogLevel warn
 119+LogLevel notice
 120+
 121+LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 122+LogFormat "%h %l %u %t \"%r\" %>s %b" common
 123+LogFormat "%{Referer}i -> %U" referer
 124+LogFormat "%{User-agent}i" agent
 125+
 126+ServerSignature Off
 127+
 128+<IfModule mod_alias.c>
 129+
 130+ Alias /icons/ "/usr/share/apache2/icons/"
 131+
 132+ <Directory "/usr/share/apache2/icons/">
 133+ Options -Indexes MultiViews
 134+ AllowOverride None
 135+ Order allow,deny
 136+ Allow from all
 137+ </Directory>
 138+
 139+ #ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
 140+
 141+# <Directory "/usr/local/apache/cgi-bin">
 142+# AllowOverride None
 143+# Options None
 144+# Order allow,deny
 145+# Allow from all
 146+# </Directory>
 147+</IfModule>
 148+
 149+<IfModule mod_autoindex.c>
 150+
 151+ IndexOptions FancyIndexing
 152+
 153+ AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 154+
 155+ AddIconByType (TXT,/icons/text.gif) text/*
 156+ AddIconByType (IMG,/icons/image2.gif) image/*
 157+ AddIconByType (SND,/icons/sound2.gif) audio/*
 158+ AddIconByType (VID,/icons/movie.gif) video/*
 159+
 160+ AddIcon /icons/binary.gif .bin .exe
 161+ AddIcon /icons/binhex.gif .hqx
 162+ AddIcon /icons/tar.gif .tar
 163+ AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
 164+ AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
 165+ AddIcon /icons/a.gif .ps .ai .eps
 166+ AddIcon /icons/layout.gif .html .shtml .htm .pdf
 167+ AddIcon /icons/text.gif .txt
 168+ AddIcon /icons/c.gif .c
 169+ AddIcon /icons/p.gif .pl .py
 170+ AddIcon /icons/f.gif .for
 171+ AddIcon /icons/dvi.gif .dvi
 172+ AddIcon /icons/uuencoded.gif .uu
 173+ AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
 174+ AddIcon /icons/tex.gif .tex
 175+ AddIcon /icons/bomb.gif core
 176+
 177+ AddIcon /icons/back.gif ..
 178+ AddIcon /icons/hand.right.gif README
 179+ AddIcon /icons/folder.gif ^^DIRECTORY^^
 180+ AddIcon /icons/blank.gif ^^BLANKICON^^
 181+
 182+ DefaultIcon /icons/unknown.gif
 183+
 184+ #AddDescription "GZIP compressed document" .gz
 185+ #AddDescription "tar archive" .tar
 186+ #AddDescription "GZIP compressed tar archive" .tgz
 187+
 188+ ReadmeName README
 189+ HeaderName HEADER
 190+
 191+ IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
 192+
 193+</IfModule>
 194+
 195+<IfModule mod_mime.c>
 196+
 197+ AddEncoding x-compress Z
 198+ AddEncoding x-gzip gz tgz
 199+
 200+ AddLanguage da .dk
 201+ AddLanguage nl .nl
 202+ AddLanguage en .en
 203+ AddLanguage eo .eo
 204+ AddLanguage et .ee
 205+ AddLanguage fr .fr
 206+ AddLanguage de .de
 207+ AddLanguage el .el
 208+ AddLanguage he .he
 209+ AddCharset ISO-8859-8 .iso8859-8
 210+ AddLanguage it .it
 211+ AddLanguage ja .ja
 212+ AddCharset ISO-2022-JP .jis
 213+ AddLanguage kr .kr
 214+ AddCharset ISO-2022-KR .iso-kr
 215+ AddLanguage nn .nn
 216+ AddLanguage no .no
 217+ AddLanguage pl .po
 218+ AddCharset ISO-8859-2 .iso-pl
 219+ AddLanguage pt .pt
 220+ AddLanguage pt-br .pt-br
 221+ AddLanguage ltz .lu
 222+ AddLanguage ca .ca
 223+ AddLanguage es .es
 224+ AddLanguage sv .sv
 225+ AddLanguage cz .cz
 226+ AddLanguage ru .ru
 227+ AddLanguage zh-tw .tw
 228+ AddLanguage tw .tw
 229+ AddCharset Big5 .Big5 .big5
 230+ AddCharset WINDOWS-1251 .cp-1251
 231+ AddCharset CP866 .cp866
 232+ AddCharset ISO-8859-5 .iso-ru
 233+ AddCharset KOI8-R .koi8-r
 234+ AddCharset UCS-2 .ucs2
 235+ AddCharset UCS-4 .ucs4
 236+ AddCharset UTF-8 .utf8
 237+
 238+ <IfModule mod_negotiation.c>
 239+ LanguagePriority en eo da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
 240+ </IfModule>
 241+
 242+ AddType application/x-tar .tgz
 243+ AddType text/xml .rdf
 244+ AddType application/x-bzip2 .bz2
 245+
 246+ <IfModule mod_php4.c>
 247+ AddType application/x-httpd-php .php .php4 .php3 .phtml
 248+ AddType application/x-httpd-php-source .phps
 249+ </IfModule>
 250+ <IfModule mod_php5.c>
 251+ AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml
 252+ AddType application/x-httpd-php-source .phps
 253+ </IfModule>
 254+
 255+</IfModule>
 256+
 257+<IfModule mod_setenvif.c>
 258+
 259+ BrowserMatch "Mozilla/2" nokeepalive
 260+ BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
 261+
 262+ BrowserMatch "RealPlayer 4\.0" force-response-1.0
 263+ BrowserMatch "Java/1\.0" force-response-1.0
 264+ BrowserMatch "JDK/1\.0" force-response-1.0
 265+
 266+</IfModule>
 267+
 268+<Location /x-server-status>
 269+ SetHandler server-status
 270+ Order deny,allow
 271+ Deny from all
 272+ Allow from .wikipedia.org
 273+# That's me -- brion
 274+ Allow from mark.usc.edu
 275+ Allow from 64.165.227.217
 276+# Jeronim
 277+ Allow from 210.49.82.219
 278+Allow from all
 279+</Location>
 280+
 281+ErrorDocument 503 /503.html
 282+ErrorDocument 404 /w/404.php
 283+
 284+NameVirtualHost *
 285+
 286+# Disabling to test -- 2003-11-30 BV FIXME
 287+####Include /apache/conf/throttle.conf
 288+
 289+# Includes
 290+
 291+# Note, the order is important
 292+# In particular, this must be the first virtual subdomain:
 293+Include /etc/apache2/wmf/nonexistent.conf
 294+
 295+# www.wikipedia.org
 296+Include /etc/apache2/wmf/www.wikipedia.conf
 297+
 298+# Redirects also must override *.wikipedia.org
 299+Include /etc/apache2/wmf/redirects.conf
 300+
 301+# Various domains including all the multi-subdomain projects
 302+# Also some site-wide settings
 303+Include /etc/apache2/wmf/main.conf
 304+
 305+# A few single-subdomain projects
 306+Include /etc/apache2/wmf/remnant.conf
 307+
 308+# Set the bad_bots environment variable based on various criteria
 309+# Include /usr/local/apache/conf/bots.conf
 310+
 311+# boards.wikimedia.org
 312+# DISABLED 2004-11-18 --brion
 313+#Include /usr/local/apache/conf/boards.conf
 314+
 315+# upload.wikimedia.org
 316+# DISABLED as this is now done on albert 2005-02-26 --brion
 317+#Include /usr/local/apache/conf/upload.conf
 318+
 319+# secure.wikimedia.org unencrypted backend
 320+Include /etc/apache2/wmf/wikimedia-ssl-backend.conf
 321+
 322+# *.wikimedia.org
 323+Include /etc/apache2/wmf/wikimedia.conf
 324+
 325+# wikimediafoundation.org and its aliases
 326+Include /etc/apache2/wmf/foundation.conf
 327+
 328+# A simple redirect to en, perhaps this once contained the load balancing redirect
 329+Include /etc/apache2/wmf/en2.conf
 330+
 331+# A couple of redirects for www.XXX.wikipedia.org
 332+Include /etc/apache2/wmf/postrewrites.conf
 333+
 334+# Set ETags for files to not be based on inode,
 335+# since that will be different on each backend server
 336+# http://bugzilla.wikimedia.org/show_bug.cgi?id=8926
 337+FileETag MTime Size
Index: trunk/debs/wikimedia-apache-config-appserver/wikimedia.conf
@@ -0,0 +1,162 @@
 2+
 3+
 4+# German verein -- HOSTED OFFSITE
 5+#<VirtualHost *>
 6+# DocumentRoot "/usr/local/apache/htdocs/wikimedia.de"
 7+# ServerName wikimedia.de
 8+# ServerAlias www.wikimedia.de *.wikimedia.de
 9+#
 10+# ErrorLog logs/wikimedia.de-error_log
 11+# CustomLog logs/wikimedia.de-log combined
 12+# AddDefaultCharset utf-8
 13+# DirectoryIndex index.html index.php
 14+# <Directory "/usr/local/apache/htdocs/wikimedia.de/">
 15+# <IfModule mod_php4.c>
 16+# php_admin_flag engine on
 17+# php_admin_value open_basedir "/usr/local/apache/htdocs/wikimedia.de/"
 18+#
 19+# AllowOverride All
 20+# </IfModule>
 21+# </Directory>
 22+# ExpiresDefault "access plus 1 hour"
 23+#
 24+#</VirtualHost>
 25+
 26+<VirtualHost *>
 27+ ServerName ch.wikimedia.org
 28+ RewriteEngine On
 29+ RewriteRule ^.*$ http://www.wikimedia.ch/ [R=302]
 30+</VirtualHost>
 31+
 32+# Chapter wikis
 33+<VirtualHost *>
 34+ ServerName wikimedia-chapter
 35+ ServerAlias nl.wikimedia.org pl.wikimedia.org nz.wikimedia.org il.wikimedia.org
 36+ UseCanonicalName off
 37+ DocumentRoot "/usr/local/apache/common/docroot/wikimedia.org"
 38+
 39+ RewriteEngine On
 40+ RewriteMap lowercase int:tolower
 41+
 42+ # Uploads to the host-specific directory
 43+ # First grab the subdomain from HTTP_HOST
 44+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikimedia\.org
 45+ # Now use it
 46+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikimedia.org/%1/$1 [R=302]
 47+
 48+ # Primary wiki redirector:
 49+ Alias /wiki /usr/local/apache/common/docroot/wikimedia.org/w/index.php
 50+ RewriteRule ^/$ /w/index.php
 51+
 52+ # UseMod compatibility URLs
 53+ RewriteCond %{QUERY_STRING} ([^&;]+)
 54+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 55+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 56+
 57+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 58+
 59+ <Directory "/usr/local/apache/common/docroot/wikimedia.org/w">
 60+ <IfModule mod_php4.c>
 61+ php_admin_flag engine on
 62+ </IfModule>
 63+ </Directory>
 64+ <Directory "/usr/local/apache/common/docroot/wikimedia.org/w/extensions">
 65+ <IfModule mod_php4.c>
 66+ php_admin_flag engine off
 67+ </IfModule>
 68+ </Directory>
 69+
 70+ # Stats
 71+ RewriteRule ^/stats(/(.*$)|$) http://wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 72+</VirtualHost>
 73+
 74+# wikimedia.org
 75+<VirtualHost *>
 76+# DocumentRoot "/usr/local/apache/htdocs/wikimedia"
 77+ DocumentRoot "/usr/local/apache/common/docroot/www.wikimedia.org"
 78+ ServerName wikimedia.org
 79+ ServerAlias www.wikimedia.org *.wikimedia.org
 80+
 81+ # Main page portal
 82+ # Waiting for Mark to write it
 83+ RewriteRule ^/$ http://www.wikimedia.org/w/extract2.php?title=Www.wikimedia.org_portal&template=Www.wikimedia.org_template [L]
 84+
 85+ ErrorLog logs/wikimedia-error_log
 86+ CustomLog logs/wikimedia-log combined
 87+ AddDefaultCharset Off
 88+ ExpiresActive On
 89+
 90+# <Directory "/usr/local/apache/htdocs/wikimedia/stats">
 91+# ExpiresByType image/gif A0
 92+# ExpiresByType image/png A0
 93+# ExpiresByType image/jpeg A0
 94+# ExpiresByType text/css A2592000
 95+# ExpiresByType text/javascript A2592000
 96+# ExpiresByType application/x-javascript A2592000
 97+# ExpiresByType text/html A0
 98+# </Directory>
 99+# <Directory "/usr/local/apache/htdocs/wikimedia/squid">
 100+# Options ExecCGI
 101+# AddHandler cgi-script .cgi
 102+# DirectoryIndex index.html index.cgi
 103+# ExpiresByType image/gif A0
 104+# ExpiresByType image/png A0
 105+# ExpiresByType image/jpeg A0
 106+# ExpiresByType text/css A2592000
 107+# ExpiresByType text/javascript A2592000
 108+# ExpiresByType application/x-javascript A2592000
 109+# </Directory>
 110+#
 111+# <Directory "/usr/local/apache/htdocs/wikimedia/ganglia">
 112+# php_admin_flag engine on
 113+# ExpiresByType image/gif A0
 114+# ExpiresByType image/png A0
 115+# ExpiresByType image/jpeg A0
 116+# ExpiresByType text/css A2592000
 117+# ExpiresByType text/javascript A2592000
 118+# ExpiresByType application/x-javascript A2592000
 119+# ExpiresByType text/html A0
 120+# </Directory>
 121+
 122+ # Redirect wiki which was previously at this location
 123+ RewriteEngine On
 124+ RewriteRule ^/wiki/(.*)$ http://wikimediafoundation.org/wiki/$1 [R=301,L]
 125+
 126+ <Directory "/usr/local/apache/common/docroot/www.wikimedia.org/w">
 127+ <IfModule mod_php4.c>
 128+ php_admin_flag engine on
 129+ </IfModule>
 130+ </Directory>
 131+
 132+# <Directory "/usr/local/apache/htdocs/wikimedia/w">
 133+# <IfModule mod_php4.c>
 134+# php_admin_flag engine on
 135+# </IfModule>
 136+# #Deny from env=bad_bots
 137+# </Directory>
 138+# <Directory "/usr/local/apache/htdocs/wikimedia/w2">
 139+# <IfModule mod_php4.c>
 140+# php_admin_flag engine on
 141+# </IfModule>
 142+# #Deny from env=bad_bots
 143+# </Directory>
 144+# <Directory "/usr/local/apache/htdocs/wikimedia/ch-portal">
 145+# <IfModule mod_php4.c>
 146+# php_admin_flag engine on
 147+# </IfModule>
 148+# </Directory>
 149+# <Directory "/usr/local/apache/htdocs/wikimedia/upload">
 150+# Options Indexes FollowSymlinks FollowSymlinks
 151+# AddType application/octet-stream .html .htm .shtml
 152+# </Directory>
 153+# <Directory "/usr/local/apache/htdocs/wikimedia/conf">
 154+# AddType text/plain .conf
 155+# </Directory>
 156+# <Directory "/usr/local/apache/htdocs/wikimedia/errors">
 157+# Options Indexes
 158+# ForceType text/html
 159+# </Directory>
 160+
 161+</VirtualHost>
 162+
 163+# vim: sts=4 sw=4 syn=apache autoindent
Index: trunk/debs/wikimedia-apache-config-appserver/en2.conf
@@ -0,0 +1,12 @@
 2+# A host en2.wikipedia.org was used in 2003 or so for primitive load
 3+# balancing between our two servers. Some URLs may be out there
 4+# still with that hostname; redirect them.
 5+
 6+<VirtualHost *>
 7+ ServerName en2.wikipedia.org
 8+
 9+ RewriteEngine On
 10+ RewriteMap escape int:escape
 11+
 12+ RewriteRule ^/(.*)$ http://en.wikipedia.org/${escape:$1} [R=301,L,NE]
 13+</VirtualHost>
Index: trunk/debs/wikimedia-apache-config-appserver/main.conf
@@ -0,0 +1,451 @@
 2+<IfModule mod_php4.c>
 3+ php_admin_flag engine off
 4+</IfModule>
 5+
 6+# MediaWiki
 7+<VirtualHost *>
 8+ ServerName www.mediawiki.org
 9+ DocumentRoot "/usr/local/apache/common/docroot/mediawiki"
 10+
 11+ RewriteEngine On
 12+
 13+ # Uploads are offsite (except on yaseo)
 14+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 15+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/mediawiki/$1 [R=302]
 16+
 17+ # Our FAQ
 18+ RewriteRule ^/FAQ$ http://www.mediawiki.org/wiki/Help:FAQ [R=301,L]
 19+
 20+ # Primary wiki redirector:
 21+ Alias /wiki /usr/local/apache/common/docroot/mediawiki/w/index.php
 22+ RewriteRule ^/$ /w/index.php
 23+
 24+ # UseMod compatibility URLs
 25+ RewriteCond %{QUERY_STRING} ([^&;]+)
 26+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 27+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 28+
 29+ # Early phase 2 compatibility URLs
 30+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 31+
 32+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 33+
 34+ <Directory "/usr/local/apache/common/docroot/mediawiki/w">
 35+ <IfModule mod_php4.c>
 36+ php_admin_flag engine on
 37+ </IfModule>
 38+ </Directory>
 39+ <Directory "/usr/local/apache/common/docroot/mediawiki/w/extensions">
 40+ <IfModule mod_php4.c>
 41+ php_admin_flag engine off
 42+ </IfModule>
 43+ </Directory>
 44+</VirtualHost>
 45+
 46+# Wiktionaries
 47+<VirtualHost *>
 48+ ServerName wiktionary
 49+ ServerAlias *.wiktionary.org
 50+ UseCanonicalName off
 51+ DocumentRoot "/usr/local/apache/common/docroot/wiktionary.org"
 52+
 53+ RewriteEngine On
 54+
 55+ # www -> en
 56+ RewriteCond %{HTTP_HOST} www.wiktionary.org
 57+ RewriteRule ^/(.*$) http://en.wiktionary.org/$1 [R=301,L]
 58+
 59+ # Uploads to the host-specific directory
 60+ # First grab the subdomain from HTTP_HOST
 61+ RewriteCond %{HTTP_HOST} ([a-z]+)\.wiktionary\.org
 62+ # Now use it
 63+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wiktionary/$1 [R=302]
 64+
 65+ # Primary wiki redirector:
 66+ Alias /wiki /usr/local/apache/common/docroot/wiktionary.org/w/index.php
 67+ RewriteRule ^/$ /w/index.php
 68+
 69+ # UseMod compatibility URLs
 70+ RewriteCond %{QUERY_STRING} ([^&;]+)
 71+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 72+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 73+
 74+ # Early phase 2 compatibility URLs
 75+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 76+
 77+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 78+
 79+ <Directory "/usr/local/apache/common/docroot/wiktionary.org/w">
 80+ <IfModule mod_php4.c>
 81+ php_admin_flag engine on
 82+ </IfModule>
 83+ </Directory>
 84+ <Directory "/usr/local/apache/common/docroot/wiktionary.org/w/extensions">
 85+ <IfModule mod_php4.c>
 86+ php_admin_flag engine off
 87+ </IfModule>
 88+ </Directory>
 89+
 90+ # Stats
 91+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 92+
 93+ # Variant aliases
 94+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 95+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 96+</VirtualHost>
 97+
 98+# Wikiquotes
 99+<VirtualHost *>
 100+ ServerName wikiquote
 101+ ServerAlias *.wikiquote.org
 102+ UseCanonicalName off
 103+ DocumentRoot "/usr/local/apache/common/docroot/wikiquote.org"
 104+
 105+ RewriteEngine On
 106+
 107+ # www -> en
 108+ RewriteCond %{HTTP_HOST} www.wikiquote.org
 109+ RewriteRule ^/(.*$) http://en.wikiquote.org/$1 [R=301,L]
 110+
 111+ # Uploads to the host-specific directory
 112+ # First grab the subdomain from HTTP_HOST
 113+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikiquote\.org
 114+ # Now use it
 115+ #RewriteRule ^/upload/(.*)$ /upload/%1/$1
 116+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikiquote/%1/$1 [R=302]
 117+
 118+ # Primary wiki redirector:
 119+ Alias /wiki /usr/local/apache/common/docroot/wikiquote.org/w/index.php
 120+ RewriteRule ^/$ /w/index.php
 121+
 122+ # UseMod compatibility URLs
 123+ RewriteCond %{QUERY_STRING} ([^&;]+)
 124+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 125+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 126+
 127+ # Early phase 2 compatibility URLs
 128+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 129+
 130+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 131+
 132+ <Directory "/usr/local/apache/common/docroot/wikiquote.org/w">
 133+ <IfModule mod_php4.c>
 134+ php_admin_flag engine on
 135+ </IfModule>
 136+ </Directory>
 137+ <Directory "/usr/local/apache/common/docroot/wikiquote.org/w/extensions">
 138+ <IfModule mod_php4.c>
 139+ php_admin_flag engine off
 140+ </IfModule>
 141+ </Directory>
 142+
 143+ # Stats
 144+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 145+
 146+ # Variant aliases
 147+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 148+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 149+</VirtualHost>
 150+
 151+# Wikipedias
 152+<VirtualHost *>
 153+ ServerName wikipedia
 154+ ServerAlias *.wikipedia.org
 155+ ServerAlias wikipedia.geo.blitzed.org
 156+ UseCanonicalName off
 157+ DocumentRoot "/usr/local/apache/common/docroot/wikipedia.org"
 158+
 159+ RewriteEngine On
 160+
 161+ RewriteCond %{HTTP_HOST} wikipedia\.geo\.blitzed\.org
 162+ RewriteRule ^/$ /w/index.php [L]
 163+
 164+ # yaseo uploads served locally
 165+ RewriteCond %{SERVER_ADDR} ^211\.115\.107
 166+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikipedia\.org
 167+ RewriteRule ^/upload/(.*)$ /upload/%1/$1 [L]
 168+
 169+ # The rest are served by the upload cluster
 170+ # First grab the subdomain from HTTP_HOST
 171+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikipedia\.org
 172+ # Now use it
 173+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/%1/$1 [R=302]
 174+
 175+ # Standard intrawiki rewrites
 176+ # Primary wiki redirector:
 177+ Alias /wiki /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 178+ RewriteRule ^/$ /w/index.php
 179+
 180+ # UseMod compatibility URLs
 181+ RewriteCond %{QUERY_STRING} ([^&;]+)
 182+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 183+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 184+
 185+ # Early phase 2 compatibility URLs
 186+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 187+
 188+ # Math not moved on yaseo...
 189+# RewriteCond %{HTTP_HOST} ^(ja|ko|ms|th)\.wikipedia\.org # crashes apache in yaseo
 190+ RewriteCond %{SERVER_ADDR} ^211\.115\.107
 191+ RewriteRule ^/math/(.*) /math/$1 [L]
 192+
 193+ # and is for the others...
 194+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 195+
 196+ # Send www.de.wikipedia.org -> de.wikipedia.org
 197+ RewriteCond %{HTTP_HOST} www.([a-z-]+).wikipedia.(com|net|org)
 198+ RewriteRule ^(.*)$ http://%1.wikipedia.org$1 [R=301,L]
 199+
 200+ # static -> $lang/static
 201+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikipedia\.org
 202+ RewriteRule ^/static/(.*)$ /static/%1/$1
 203+
 204+ # moved wikistats off NFS
 205+ RewriteRule ^/wikistats(/(.*$)|$) http://stats.wikimedia.org/$2 [R=302,L]
 206+
 207+ <Directory "/usr/local/apache/common/docroot/wikipedia.org/w">
 208+ <IfModule mod_php4.c>
 209+ php_admin_flag engine on
 210+ </IfModule>
 211+ </Directory>
 212+ <Directory "/usr/local/apache/common/docroot/wikipedia.org/w/extensions">
 213+ <IfModule mod_php4.c>
 214+ php_admin_flag engine off
 215+ </IfModule>
 216+ </Directory>
 217+
 218+ # Stats
 219+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 220+
 221+ # Variant aliases
 222+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 223+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 224+</VirtualHost>
 225+
 226+# Wikibooks
 227+<VirtualHost *>
 228+ ServerName wikibooks
 229+ ServerAlias *.wikibooks.org
 230+ UseCanonicalName off
 231+ DocumentRoot "/usr/local/apache/common/docroot/wikibooks.org"
 232+
 233+ RewriteEngine On
 234+
 235+ # www -> portal
 236+ RewriteCond %{HTTP_HOST} www.wikibooks.org
 237+ RewriteRule ^/$ http://en.wikibooks.org/wiki/Wikibooks_portal [R=301,L]
 238+
 239+ # www -> en
 240+ RewriteCond %{HTTP_HOST} www.wikibooks.org
 241+ RewriteRule ^/(.*$) http://en.wikibooks.org/$1 [R=301,L]
 242+
 243+ # Uploads to the host-specific directory
 244+ # First grab the subdomain from HTTP_HOST
 245+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikibooks\.org
 246+ # Now use it
 247+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikibooks/%1/$1 [R=302]
 248+
 249+ # Primary wiki redirector:
 250+ Alias /wiki /usr/local/apache/common/docroot/wikibooks.org/w/index.php
 251+ RewriteRule ^/$ /w/index.php
 252+
 253+ # UseMod compatibility URLs
 254+ RewriteCond %{QUERY_STRING} ([^&;]+)
 255+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 256+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 257+
 258+ # Early phase 2 compatibility URLs
 259+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 260+
 261+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 262+
 263+ <Directory "/usr/local/apache/common/docroot/wikibooks.org/w">
 264+ <IfModule mod_php4.c>
 265+ php_admin_flag engine on
 266+ </IfModule>
 267+ </Directory>
 268+ <Directory "/usr/local/apache/common/docroot/wikibooks.org/w/extensions">
 269+ <IfModule mod_php4.c>
 270+ php_admin_flag engine off
 271+ </IfModule>
 272+ </Directory>
 273+
 274+ # Stats
 275+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 276+
 277+ # Variant aliases
 278+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 279+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 280+</VirtualHost>
 281+
 282+# Wikisource (note: approved languages only)
 283+<VirtualHost *>
 284+ ServerName wikisource
 285+ ServerAlias *.wikisource.org
 286+ UseCanonicalName off
 287+ DocumentRoot "/usr/local/apache/common/docroot/wikisource.org"
 288+
 289+ RewriteEngine On
 290+
 291+ # www -> wikisource.org
 292+ RewriteCond %{HTTP_HOST} (www)\.wikisource\.org
 293+ RewriteRule ^(.*)$ http://wikisource.org$1 [R=301,L]
 294+
 295+ # Uploads to the host-specific directory
 296+ # First grab the subdomain from HTTP_HOST
 297+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikisource\.org
 298+ # Now use it
 299+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikisource/%1/$1 [R=302]
 300+
 301+ # Primary wiki redirector:
 302+ Alias /wiki /usr/local/apache/common/docroot/wikisource.org/w/index.php
 303+ RewriteRule ^/$ /w/index.php
 304+
 305+ # UseMod compatibility URLs
 306+ RewriteCond %{QUERY_STRING} ([^&;]+)
 307+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 308+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 309+
 310+ # Early phase 2 compatibility URLs
 311+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 312+
 313+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 314+
 315+ <Directory "/usr/local/apache/common/docroot/wikisource.org/w">
 316+ <IfModule mod_php4.c>
 317+ php_admin_flag engine on
 318+ </IfModule>
 319+ </Directory>
 320+ <Directory "/usr/local/apache/common/docroot/wikisource.org/w/extensions">
 321+ <IfModule mod_php4.c>
 322+ php_admin_flag engine off
 323+ </IfModule>
 324+ </Directory>
 325+
 326+ # Stats
 327+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 328+
 329+ # Variant aliases
 330+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 331+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 332+</VirtualHost>
 333+
 334+# Wikinews (approved subdomains only)
 335+<VirtualHost *>
 336+ ServerName wikinews
 337+ ServerAlias *.wikinews.org
 338+ UseCanonicalName off
 339+ DocumentRoot "/usr/local/apache/common/docroot/wikinews.org"
 340+
 341+ RewriteEngine On
 342+
 343+ # www,demo -> en.wikinews.org
 344+ RewriteCond %{HTTP_HOST} demo\.wikinews\.org
 345+ RewriteRule ^(.*)$ http://en.wikinews.org$1 [R=301,L]
 346+
 347+ # Uploads to the host-specific directory
 348+ # First grab the subdomain from HTTP_HOST
 349+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikinews\.org
 350+ # Now use it
 351+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikinews/%1/$1 [R=302]
 352+
 353+ # Primary wiki redirector:
 354+ Alias /wiki /usr/local/apache/common/docroot/wikinews.org/w/index.php
 355+ RewriteRule ^/$ /w/index.php
 356+
 357+ # UseMod compatibility URLs
 358+ RewriteCond %{QUERY_STRING} ([^&;]+)
 359+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 360+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 361+
 362+ # Early phase 2 compatibility URLs
 363+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 364+
 365+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 366+
 367+ <Directory "/usr/local/apache/common/docroot/wikinews.org/w">
 368+ <IfModule mod_php4.c>
 369+ php_admin_flag engine on
 370+ </IfModule>
 371+ </Directory>
 372+ <Directory "/usr/local/apache/common/docroot/wikinews.org/w/extensions">
 373+ <IfModule mod_php4.c>
 374+ php_admin_flag engine off
 375+ </IfModule>
 376+ </Directory>
 377+
 378+ # Stats
 379+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 380+
 381+ # Variant aliases
 382+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 383+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 384+</VirtualHost>
 385+
 386+
 387+# Wikiversity (note: approved languages only)
 388+<VirtualHost *>
 389+ ServerName wikiversity
 390+ ServerAlias *.wikiversity.org
 391+ UseCanonicalName off
 392+ DocumentRoot "/usr/local/apache/common/docroot/wikiversity.org"
 393+
 394+ RewriteEngine On
 395+
 396+ # Uploads to the host-specific directory
 397+ # First grab the subdomain from HTTP_HOST
 398+ RewriteCond %{HTTP_HOST} ([a-z\-]+)\.wikiversity\.org
 399+ # Now use it
 400+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikiversity/%1/$1 [R=302]
 401+
 402+ # Primary wiki redirector:
 403+ Alias /wiki /usr/local/apache/common/docroot/wikiversity.org/w/index.php
 404+ RewriteRule ^/$ /w/index.php
 405+
 406+ # UseMod compatibility URLs
 407+ RewriteCond %{QUERY_STRING} ([^&;]+)
 408+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 409+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 410+
 411+ # Early phase 2 compatibility URLs
 412+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 413+
 414+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 415+
 416+ <Directory "/usr/local/apache/common/docroot/wikiversity.org/w">
 417+ <IfModule mod_php4.c>
 418+ php_admin_flag engine on
 419+ </IfModule>
 420+ </Directory>
 421+ <Directory "/usr/local/apache/common/docroot/wikiversity.org/w/extensions">
 422+ <IfModule mod_php4.c>
 423+ php_admin_flag engine off
 424+ </IfModule>
 425+ </Directory>
 426+
 427+ # Stats
 428+ RewriteRule ^/stats(/(.*$)|$) http://www2.knams.wikimedia.org/stats/%{HTTP_HOST}/$1 [R=301,L]
 429+
 430+ # Variant aliases
 431+ Alias /sr-ec /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 432+ Alias /sr-el /usr/local/apache/common/docroot/wikipedia.org/w/index.php
 433+</VirtualHost>
 434+
 435+
 436+
 437+
 438+# Wikipedias are now handled with a shared document root, above
 439+
 440+<IfModule mod_mmap_static.c>
 441+ MMapFile /usr/local/apache/common/favicon.ico
 442+ MMapFile /usr/local/apache/common/robots.txt
 443+# MMapFile /usr/local/apache/common/upload/wiki.png
 444+# MMapFile /usr/local/apache/common/style/cologneblue.css
 445+# MMapFile /usr/local/apache/common/style/nostalgia.css
 446+# MMapFile /usr/local/apache/common/style/quickbar.css
 447+# MMapFile /usr/local/apache/common/style/sticky.js
 448+# MMapFile /usr/local/apache/common/style/wikiprintable.css
 449+# MMapFile /usr/local/apache/common/style/wikistandard.css
 450+</IfModule>
 451+
 452+# vim: syn=apache sts=4 sw=4 autoindent
Index: trunk/debs/wikimedia-apache-config-appserver/redirects.conf
@@ -0,0 +1,325 @@
 2+# Cross-domain redirects
 3+# Note that many of these redirects are unofficial and subject to change
 4+# Always link to the canonical location
 5+
 6+<VirtualHost *>
 7+ ServerName redirector.wikipedia.org
 8+ ServerAlias wikipedia.com *.wikipedia.com wikipedia.org \
 9+ wikipedia.net *.wikipedia.net \
 10+ wikipedia.co.uk *.wikipedia.co.uk \
 11+ en2.wikipedia.org \
 12+ cz.wikipedia.org dk.wikipedia.org jp.wikipedia.org nan.wikipedia.org \
 13+ de-beta.wikipedia.org \
 14+ minnan.wikipedia.org zh-cfr.wikipedia.org\
 15+ nb.wikipedia.org tp.wikipedia.org \
 16+ epo.wikipedia.org www.nds.wikipedia.org \
 17+ www.nl.wikipedia.org wikipedia.nl *.wikipedia.nl \
 18+ wiktionary.wikipedia.org \
 19+ wikiquote.org wikiquote.com *.wikiquote.com\
 20+ wiktionary.com *.wiktionary.com \
 21+ wikipedia.pl *.wikipedia.pl \
 22+ wikipedia.de *.wikipedia.de \
 23+ wikipedia.at *.wikipedia.at \
 24+ wikipedia.ch *.wikipedia.ch \
 25+ wikipedia.fr *.wikipedia.fr \
 26+ vikipedio.org *.vikipedio.org \
 27+ vikipedio.com *.vikipedio.com \
 28+ wikibooks.org \
 29+ wikibook.org *.wikibook.org wikibook.com wikibooks.com *.wikibook.com \
 30+ wikibooks.de www.wikibooks.de *.wikibooks.com \
 31+ boards.wikipedia.org \
 32+ wikipedia.walon.org \
 33+ meta.wikipedia.org \
 34+ textbook.wikipedia.org \
 35+ sources.wikipedia.org \
 36+ quote.wikipedia.org \
 37+ bugzilla.wikipedia.org \
 38+ zh-tw.wikipedia.org zh-cn.wikipedia.org \
 39+ wikipaedia.net *.wikipaedia.net \
 40+ *.wikispecies.com wikispecies.com *.wikispecies.org species.wikipedia.org \
 41+ *.wikimediafoundation.org wikimediafoundation.com \
 42+ wikimediafoundation.net *.wikimediafoundation.com *.wikimediafoundation.net \
 43+ wikisource.com *.wikisource.com commons.wikipedia.org \
 44+ wikinews.org \
 45+ mediawiki.org \
 46+ wiki.mediawiki.org \
 47+ *.mediawiki.com \
 48+ mediawiki.com \
 49+ nostalgia.wikimedia.org \
 50+ wikipedia.org.br \
 51+ *.wikipedia.org.br \
 52+ wikipedia.info \
 53+ *.wikipedia.info \
 54+ wikimania.wikimedia.org \
 55+ cfp.wikimania.wikimedia.org \
 56+ www.wikimania2006.org \
 57+ wikimania2006.org \
 58+ wikimania2007.org \
 59+ www.wikimania2007.org \
 60+ quickipedia.org \
 61+ *.quickipedia.org \
 62+ quickipedia.net \
 63+ *.quickipedia.net \
 64+ it.wikimedia.org \
 65+ bugzilla.mediawiki.org \
 66+ sep11.wikipedia.org \
 67+ wikijunior.org *.wikijunior.org
 68+
 69+# allow caching for redirects
 70+Header set Cache-control "s-maxage=86000, max-age=0, must-revalidate"
 71+ ExpiresActive On
 72+ ExpiresByType image/gif A2592000
 73+ ExpiresByType image/png A2592000
 74+ ExpiresByType image/jpeg A2592000
 75+ ExpiresByType text/css A2592000
 76+ ExpiresByType text/javascript A2592000
 77+ ExpiresByType application/x-javascript A2592000
 78+ ExpiresByType text/html A2592000
 79+
 80+# DocumentRoot /usr/local/apache/htdocs/www
 81+ DocumentRoot /usr/local/apache/common/docroot/default
 82+
 83+ RewriteEngine On
 84+
 85+ # Language aliases
 86+
 87+ RewriteCond %{HTTP_HOST} (test-)?de(-beta)?.wikipedia.(com|org)
 88+ RewriteRule ^(.*)$ http://de.wikipedia.org$1 [R=301,L]
 89+
 90+ RewriteCond %{HTTP_HOST} dk.wikipedia.(com|org)
 91+ RewriteRule ^(.*)$ http://da.wikipedia.org$1 [R=301,L]
 92+
 93+ RewriteCond %{HTTP_HOST} cz.wikipedia.(com|org)
 94+ RewriteRule ^(.*)$ http://cs.wikipedia.org$1 [R=301,L]
 95+
 96+ RewriteCond %{HTTP_HOST} jp.wikipedia.(com|org)
 97+ RewriteRule ^(.*)$ http://ja.wikipedia.org$1 [R=301,L]
 98+
 99+ RewriteCond %{HTTP_HOST} (zh-cfr|minnan|nan).wikipedia.org
 100+ RewriteRule ^(.*)$ http://zh-min-nan.wikipedia.org$1 [R=302,L]
 101+
 102+ RewriteCond %{HTTP_HOST} (zh-cn|zh-tw).wikipedia.org
 103+ RewriteRule ^(.*)$ http://zh.wikipedia.org$1 [R=301,L]
 104+
 105+ RewriteCond %{HTTP_HOST} nb.wikipedia.org
 106+ RewriteRule ^(.*)$ http://no.wikipedia.org$1 [R=301,L]
 107+
 108+ RewriteCond %{HTTP_HOST} tp.wikipedia.org
 109+ RewriteRule ^(.*)$ http://tokipona.wikipedia.org$1 [R=301,L]
 110+
 111+ RewriteCond %{HTTP_HOST} epo.wikipedia.org
 112+ RewriteRule ^/(.*$) http://eo.wikipedia.org/$1 [R=301,L]
 113+
 114+ RewriteCond %{HTTP_HOST} sep11.wikipedia.org
 115+ RewriteRule ^/(.*$) http://sep11memories.org/$1 [R=301,L]
 116+
 117+
 118+ # Wikibooks
 119+
 120+ # Redirect language-neutral entry to the portal
 121+ RewriteCond %{HTTP_HOST} ^wikibooks.(org|com)
 122+ RewriteRule ^/?$ http://en.wikibooks.org/wiki/Wikibooks_portal [R=301,L]
 123+
 124+ # Redirect old URLs to en.wikibooks.org, to avoid breaking them
 125+ RewriteCond %{HTTP_HOST} ^(www\.)?wikibooks?\.(org|com)
 126+ RewriteRule ^(.*)$ http://en.wikibooks.org$1 [R=301,L]
 127+
 128+ RewriteCond %{HTTP_HOST} ^(www\.)?wikibooks?\.de
 129+ RewriteRule ^(.*)$ http://de.wikibooks.org$1 [R=301,L]
 130+
 131+ RewriteCond %{HTTP_HOST} textbook.wikipedia.org
 132+ RewriteRule ^/(.*$) http://wikibooks.org/$1 [R=301,L]
 133+
 134+ RewriteCond %{HTTP_HOST} ^(.*\.)?wikijunior\.org
 135+ RewriteRule ^/(.*)$ http://en.wikibooks.org/wiki/Wikijunior [R=302,L]
 136+
 137+
 138+ # Alternate main domains
 139+
 140+ RewriteCond %{HTTP_HOST} ^(www.)?wikipedia.(com|net)
 141+ RewriteRule ^(.*)$ http://www.wikipedia.org$1 [R=301,L]
 142+
 143+ RewriteCond %{HTTP_HOST} ^en.wikipedia.com
 144+ RewriteRule ^(.*)$ http://en.wikipedia.org$1 [R=301,L]
 145+
 146+ RewriteCond %{HTTP_HOST} ^en2.wikipedia.org
 147+ RewriteRule ^(.*)$ http://en.wikipedia.org$1 [R=301,L]
 148+
 149+ RewriteCond %{HTTP_HOST} ([a-z]+).wikipedia.(com|net|info)
 150+ RewriteRule ^(.*)$ http://%1.wikipedia.org$1 [R=301,L]
 151+
 152+ RewriteCond %{HTTP_HOST} www.([a-z]+).wikipedia.(com|org|info)
 153+ RewriteRule ^(.*)$ http://%1.wikipedia.org$1 [R=301,L]
 154+
 155+ RewriteCond %{HTTP_HOST} wikipedia.co.uk$
 156+ RewriteRule ^(.*)$ http://en.wikipedia.org$1 [R=301,L]
 157+
 158+ RewriteCond %{HTTP_HOST} ([a-z]+).wikipaedia.net
 159+ RewriteRule ^(.*)$ http://%1.wikipedia.org$1 [R=301,L]
 160+
 161+ RewriteCond %{HTTP_HOST} ^wikipaedia.net$
 162+ RewriteRule ^(.*)$ http://www.wikipedia.org$1 [R=301,L]
 163+
 164+ RewriteCond %{HTTP_HOST} ([a-z]+).quickipedia.(com|net|org|info)
 165+ RewriteRule ^(.*)$ http://%1.wikipedia.org$1 [R=301,L]
 166+
 167+ # Localised TLDs
 168+
 169+ RewriteCond %{HTTP_HOST} (www.)?wikipedia.nl
 170+ #RewriteRule ^/$ http://nl.wikipedia.org/wiki/Wikipedia:Welkom_Wolkom [R=301,L]
 171+ RewriteRule ^/$ http://www.wikimedia.org/nl-portal/ [R=301,L]
 172+
 173+ RewriteCond %{HTTP_HOST} (www.)?wikipedia.nl
 174+ RewriteRule ^/(.*)$ http://nl.wikipedia.org/$1 [R=301,L]
 175+
 176+ RewriteCond %{HTTP_HOST} (www.)?wikipedia.pl
 177+ RewriteRule ^/(.*)$ http://pl.wikipedia.org/$1 [R=301,L]
 178+
 179+ # Upon request of Kurt Jansson:
 180+ # Redirect any request for those to the main page, not to linked articles.
 181+ # Lawyers suck(TM).
 182+ #
 183+ RewriteCond %{HTTP_HOST} (www.)?wikipedia.(de|at)
 184+ RewriteRule ^/(.*)$ http://de.wikipedia.org/? [R=301,L]
 185+
 186+ RewriteCond %{HTTP_HOST} (www.)?wikipedia.ch
 187+ RewriteRule ^/$ http://www.wikimedia.org/ch-portal/ [R=301,L]
 188+ RewriteCond %{HTTP_HOST} (www.)?wikipedia.ch
 189+ RewriteRule ^/(.*)$ http://de.wikipedia.org/$1 [R=301,L]
 190+
 191+ RewriteCond %{HTTP_HOST} vikipedio.(com|org)
 192+ RewriteRule ^/(.*)$ http://eo.wikipedia.org/$1 [R=301,L]
 193+
 194+ RewriteCond %{HTTP_HOST} wikipedia.walon.org
 195+ RewriteRule ^/(.*$) http://wa.wikipedia.org/$1 [R=301,L]
 196+
 197+ RewriteCond %{HTTP_HOST} wikipedia.org.br
 198+ RewriteRule ^/(.*$) http://pt.wikipedia.org/$1 [R=301,L]
 199+
 200+ RewriteCond %{HTTP_HOST} wikipedia.fr$
 201+ RewriteRule ^/(.*)$ http://fr.wikipedia.org/$1 [R=301,L]
 202+
 203+ # Assorted rubbish
 204+
 205+ RewriteCond %{HTTP_HOST} test.wikipedia.com
 206+ RewriteRule ^/(.*)$ http://pl.wikipedia.org/$1 [R=301,L]
 207+
 208+ RewriteCond %{HTTP_HOST} test-eo.wikipedia.com
 209+ RewriteRule ^/(.*)$ http://eo.wikipedia.org/$1 [R=301,L]
 210+
 211+ # Wiktionary
 212+
 213+ RewriteCond %{HTTP_HOST} (.*)\.wiktionary.com
 214+ RewriteRule ^/(.*$) http://%1.wiktionary.org/$1 [R=301,L]
 215+
 216+ RewriteCond %{HTTP_HOST} (www.)?wiktionary.com
 217+ RewriteRule ^/(.*$) http://www.wiktionary.org/$1 [R=301,L]
 218+
 219+ RewriteCond %{HTTP_HOST} wiktionary.wikipedia.org
 220+ RewriteRule ^/(.*$) http://en.wiktionary.org/$1 [R=301,L]
 221+
 222+ # Wikiquote
 223+
 224+ RewriteCond %{HTTP_HOST} (.*)wikiquote.com
 225+ RewriteRule ^/(.*$) http://%1wikiquote.org/$1 [R=301,L]
 226+
 227+ RewriteCond %{HTTP_HOST} (www.)?wikiquote.org
 228+ RewriteRule ^/(.*$) http://en.wikiquote.org/$1 [R=301,L]
 229+
 230+ RewriteCond %{HTTP_HOST} quote.wikipedia.org
 231+ RewriteRule ^/(.*$) http://en.wikiquote.org/$1 [R=301,L]
 232+
 233+ # Wikispecies
 234+
 235+ # Temporarily at wikispecies.wikipedia.org until DNS is sorted out
 236+ # two / cause actual (2004 10 22) redirect is wrong
 237+ RewriteCond %{HTTP_HOST} (.*)wikispecies.(com|org)
 238+ RewriteRule ^//(.*)$ http://species.wikipedia.org/$1 [R=301,L]
 239+
 240+ #RewriteCond %{HTTP_HOST} (.*)wikispecies.(com|org)
 241+ #RewriteRule ^/(.*)$ http://wikispecies.org/$1 [R=301,L]
 242+
 243+ #RewriteCond %{HTTP_HOST} species.wikipedia.org
 244+ #RewriteRule ^/(.*)$ http://wikispecies.org/$1 [R=301,L]
 245+
 246+ # wikimediafoundation
 247+ RewriteCond %{HTTP_HOST} wikimediafoundation
 248+ RewriteRule ^/(.*)$ http://wikimediafoundation.org/$1 [R=301,L]
 249+
 250+ # Other projects
 251+
 252+
 253+ RewriteCond %{HTTP_HOST} boards.wikipedia.org
 254+ RewriteRule ^/(.*$) http://boards.wikimedia.org/$1 [R=301,L]
 255+
 256+ RewriteCond %{HTTP_HOST} meta.wikipedia.org
 257+ RewriteRule ^/(.*$) http://meta.wikimedia.org/$1 [R=301,L]
 258+
 259+ RewriteCond %{HTTP_HOST} sources.wikipedia.org
 260+ RewriteRule ^/(.*$) http://wikisource.org/$1 [R=301,L]
 261+
 262+ RewriteCond %{HTTP_HOST} ([a-z]+).wikisource.com
 263+ RewriteRule ^(.*)$ http://%1.wikisource.org$1 [R=301,L]
 264+
 265+ RewriteCond %{HTTP_HOST} wikisource.com
 266+ RewriteRule ^(.*)$ http://wikisource.org$1 [R=301,L]
 267+
 268+ RewriteCond %{HTTP_HOST} bugzilla.wikipedia.org
 269+ RewriteRule ^/(.*$) http://bugzilla.wikimedia.org/$1 [R=301,L]
 270+
 271+ RewriteCond %{HTTP_HOST} commons.wikipedia.org
 272+ RewriteRule ^(.*)$ http://commons.wikimedia.org$1 [R=301,L]
 273+
 274+ RewriteCond %{HTTP_HOST} species.wikipedia.org
 275+ RewriteRule ^/(.*$) http://species.wikimedia.org/$1 [R=301,L]
 276+
 277+ RewriteCond %{HTTP_HOST} wikinews.org
 278+ RewriteRule ^(.*)$ http://en.wikinews.org$1 [R=301,L]
 279+
 280+ # Temp!
 281+ RewriteCond %{HTTP_HOST} www.nds.wikipedia.org
 282+ RewriteRule ^/(.*$) http://nds.wikipedia.org/$1 [R=301,L]
 283+
 284+ RewriteCond %{HTTP_HOST} bugzilla.mediawiki.org
 285+ RewriteRule ^/(.*)$ http://bugzilla.wikimedia.org/$1 [R=302,L]
 286+
 287+ RewriteCond %{HTTP_HOST} mediawiki.org
 288+ RewriteRule ^/(.*)$ http://www.mediawiki.org/$1 [R=301,L]
 289+
 290+ RewriteCond %{HTTP_HOST} mediawiki.com
 291+ RewriteRule ^/(.*)$ http://www.mediawiki.org/$1 [R=301,L]
 292+
 293+ RewriteCond %{HTTP_HOST} nostalgia.wikimedia.org
 294+ RewriteRule ^/(.*)$ http://nostalgia.wikipedia.org/$1 [R=301,L]
 295+
 296+ RewriteCond %{HTTP_HOST} cfp.wikimania.wikimedia.org
 297+ RewriteRule ^/(.*)$ http://radian.org:8080/$1 [R=301,L]
 298+
 299+ RewriteCond %{HTTP_HOST} (.*)wikimania2006.org
 300+ RewriteRule ^/(.*)$ http://wikimania2006.wikimedia.org/$1 [R=302,L]
 301+
 302+ RewriteCond %{HTTP_HOST} (.*)wikimania2007.org
 303+ RewriteRule ^/(.*)$ http://wikimania2007.wikimedia.org/$1 [R=302,L]
 304+
 305+ RewriteCond %{HTTP_HOST} (.*)wikimania200[5-9].org
 306+ RewriteRule ^/(.*)$ http://wikimania.wikimedia.org/$1 [R=302,L]
 307+
 308+ RewriteCond %{HTTP_HOST} wikimania.wikimedia.org
 309+ RewriteRule ^/(.*)$ http://wikimania2007.wikimedia.org/$1 [R=302,L]
 310+
 311+ RewriteCond %{HTTP_HOST} it.wikimedia.org
 312+ RewriteRule ^/(.*)$ http://www.wikimedia.it/$1 [R=302,L]
 313+
 314+
 315+
 316+ # Redirecting from subdirectories of wikipedia.org to subdomains
 317+
 318+ RewriteCond %{HTTP_HOST} ^wikipedia.(com|org)
 319+ RewriteRule ^/([a-z]{2}|meta)/(.*)$ http://$1.wikipedia.org/wiki/$2 [R=301,L]
 320+
 321+ # Send anything else that matched the ServerAlias to en.wikipedia.org
 322+ RewriteRule ^(.*)$ http://en.wikipedia.org$1 [R=301,L]
 323+
 324+</VirtualHost>
 325+
 326+# vim: sts=4 sw=4 autoindent syn=apache
Index: trunk/debs/wikimedia-apache-config-appserver/remnant.conf
@@ -0,0 +1,575 @@
 2+
 3+# Meta
 4+<VirtualHost *>
 5+ DocumentRoot "/usr/local/apache/common/docroot/meta"
 6+ ServerName meta.wikimedia.org
 7+ ErrorLog logs/meta.wikimedia.org-error_log
 8+
 9+ RewriteEngine On
 10+
 11+ # Primary wiki redirector:
 12+ Alias /wiki /usr/local/apache/common/docroot/meta/w/index.php
 13+ RewriteRule ^/$ /w/index.php
 14+
 15+ # UseMod compatibility URLs
 16+ RewriteCond %{QUERY_STRING} ([^&;]+)
 17+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 18+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 19+
 20+ # Early phase 2 compatibility URLs
 21+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 22+
 23+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 24+
 25+ # Uploads are offsite (except on yaseo)
 26+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 27+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/meta/$1 [R=302]
 28+
 29+ <Directory "/usr/local/apache/common/docroot/meta/w">
 30+ <IfModule mod_php4.c>
 31+ php_admin_flag engine on
 32+ </IfModule>
 33+ </Directory>
 34+</VirtualHost>
 35+
 36+# Wikisource
 37+<VirtualHost *>
 38+ DocumentRoot "/usr/local/apache/common/docroot/sources"
 39+ ServerName wikisource.org
 40+ ErrorLog logs/wikisource.org-error_log
 41+
 42+ RewriteEngine On
 43+
 44+ # Primary wiki redirector:
 45+ Alias /wiki /usr/local/apache/common/docroot/sources/w/index.php
 46+ RewriteRule ^/$ /w/index.php
 47+
 48+ # UseMod compatibility URLs
 49+ RewriteCond %{QUERY_STRING} ([^&;]+)
 50+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 51+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 52+
 53+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 54+
 55+ # Uploads are offsite (except on yaseo)
 56+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 57+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/sources/$1 [R=302]
 58+
 59+ <Directory "/usr/local/apache/common/docroot/sources/w">
 60+ <IfModule mod_php4.c>
 61+ php_admin_flag engine on
 62+ </IfModule>
 63+ </Directory>
 64+</VirtualHost>
 65+
 66+# Wikimedia Commons
 67+<VirtualHost *>
 68+ DocumentRoot "/usr/local/apache/common/docroot/commons"
 69+ ServerName commons.wikimedia.org
 70+ ErrorLog logs/commons.wikimedia.org-error_log
 71+
 72+ RewriteEngine On
 73+
 74+ # Primary wiki redirector:
 75+ Alias /wiki /usr/local/apache/common/docroot/commons/w/index.php
 76+ RewriteRule ^/$ /w/index.php
 77+
 78+ # UseMod compatibility URLs
 79+ RewriteCond %{QUERY_STRING} ([^&;]+)
 80+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 81+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 82+
 83+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 84+
 85+ # Uploads are offsite (except on yaseo)
 86+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 87+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/commons/$1 [R=302]
 88+
 89+ <Directory "/usr/local/apache/common/docroot/commons/w">
 90+ <IfModule mod_php4.c>
 91+ php_admin_flag engine on
 92+ </IfModule>
 93+ </Directory>
 94+</VirtualHost>
 95+
 96+# Internal grants wiki
 97+<VirtualHost *>
 98+ DocumentRoot "/usr/local/apache/common/docroot/grants"
 99+ ServerName grants.wikimedia.org
 100+ ErrorLog logs/grants.wikimedia.org-error_log
 101+
 102+ RewriteEngine On
 103+
 104+ # Primary wiki redirector:
 105+ Alias /wiki /usr/local/apache/common/docroot/grants/w/index.php
 106+ RewriteRule ^/$ /w/index.php
 107+
 108+ # UseMod compatibility URLs
 109+ RewriteCond %{QUERY_STRING} ([^&;]+)
 110+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 111+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 112+
 113+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 114+
 115+ <Directory "/usr/local/apache/common/docroot/grants/w">
 116+ <IfModule mod_php4.c>
 117+ php_admin_flag engine on
 118+ </IfModule>
 119+ </Directory>
 120+ <Directory "/usr/local/apache/common/docroot/grants/w/extensions">
 121+ <IfModule mod_php4.c>
 122+ php_admin_flag engine off
 123+ </IfModule>
 124+ </Directory>
 125+</VirtualHost>
 126+
 127+# vim: syn=apache sts=4 sw=4 autoindent
 128+
 129+# Wikimania wiki
 130+<VirtualHost *>
 131+ DocumentRoot "/usr/local/apache/common/docroot/wikimania2005"
 132+ ServerName wikimania2005.wikimedia.org
 133+ ErrorLog logs/wikimania.wikimedia.org-error_log
 134+
 135+ RewriteEngine On
 136+
 137+ # Primary wiki redirector:
 138+ Alias /wiki /usr/local/apache/common/docroot/wikimania2005/w/index.php
 139+ RewriteRule ^/$ /w/index.php
 140+
 141+ # UseMod compatibility URLs
 142+ RewriteCond %{QUERY_STRING} ([^&;]+)
 143+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 144+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 145+
 146+ # Early phase 2 compatibility URLs
 147+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 148+
 149+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 150+
 151+ # Uploads are offsite (except on yaseo)
 152+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 153+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/wikimania/$1 [R=302]
 154+
 155+ <Directory "/usr/local/apache/common/docroot/wikimania2005/w">
 156+ <IfModule mod_php4.c>
 157+ php_admin_flag engine on
 158+ </IfModule>
 159+ </Directory>
 160+# <Directory "/usr/local/apache/common/docroot/wikimania/registration">
 161+# <IfModule mod_php4.c>
 162+# php_admin_flag engine on
 163+# </IfModule>
 164+# DirectoryIndex index.html index.php
 165+# </Directory>
 166+</VirtualHost>
 167+
 168+# Wikimania wiki
 169+<VirtualHost *>
 170+ DocumentRoot "/usr/local/apache/common/docroot/wikimania2006"
 171+ ServerName wikimania2006.wikimedia.org
 172+ ErrorLog logs/wikimania.wikimedia.org-error_log
 173+
 174+ RewriteEngine On
 175+
 176+ # Primary wiki redirector:
 177+ Alias /wiki /usr/local/apache/common/docroot/wikimania2006/w/index.php
 178+ RewriteRule ^/$ /w/index.php
 179+
 180+ # UseMod compatibility URLs
 181+ RewriteCond %{QUERY_STRING} ([^&;]+)
 182+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 183+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 184+
 185+ # Early phase 2 compatibility URLs
 186+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 187+
 188+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 189+
 190+ # Uploads are offsite (except on yaseo)
 191+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 192+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/wikimania2006/$1 [R=302]
 193+
 194+ <Directory "/usr/local/apache/common/docroot/wikimania2006/w">
 195+ <IfModule mod_php4.c>
 196+ php_admin_flag engine on
 197+ </IfModule>
 198+ </Directory>
 199+</VirtualHost>
 200+
 201+# Wikimania wiki
 202+<VirtualHost *>
 203+ DocumentRoot "/usr/local/apache/common/docroot/wikimania2007"
 204+ ServerName wikimania2007.wikimedia.org
 205+ ErrorLog logs/wikimania.wikimedia.org-error_log
 206+
 207+ RewriteEngine On
 208+
 209+ # Primary wiki redirector:
 210+ Alias /wiki /usr/local/apache/common/docroot/wikimania2007/w/index.php
 211+ RewriteRule ^/$ /w/index.php
 212+
 213+ # UseMod compatibility URLs
 214+ RewriteCond %{QUERY_STRING} ([^&;]+)
 215+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 216+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 217+
 218+ # Early phase 2 compatibility URLs
 219+ RewriteRule ^/wiki\.phtml$ /w/index.php [R=301,L]
 220+
 221+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 222+
 223+ # Uploads are offsite (except on yaseo)
 224+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 225+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/wikimania2007/$1 [R=302]
 226+
 227+ <Directory "/usr/local/apache/common/docroot/wikimania2007/w">
 228+ <IfModule mod_php4.c>
 229+ php_admin_flag engine on
 230+ </IfModule>
 231+ </Directory>
 232+</VirtualHost>
 233+
 234+# Internal wiki
 235+<VirtualHost *>
 236+ DocumentRoot "/usr/local/apache/common/docroot/internal"
 237+ ServerName internal.wikimedia.org
 238+ ErrorLog logs/internal.wikimedia.org-error_log
 239+
 240+ RewriteEngine On
 241+
 242+ # Primary wiki redirector:
 243+ Alias /wiki /usr/local/apache/common/docroot/internal/w/index.php
 244+ RewriteRule ^/$ /w/index.php
 245+
 246+ # UseMod compatibility URLs
 247+ RewriteCond %{QUERY_STRING} ([^&;]+)
 248+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 249+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 250+
 251+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 252+
 253+ <Directory "/usr/local/apache/common/docroot/internal/w">
 254+ <IfModule mod_php4.c>
 255+ php_admin_flag engine on
 256+ </IfModule>
 257+ </Directory>
 258+</VirtualHost>
 259+
 260+# Board wiki
 261+<VirtualHost *>
 262+ DocumentRoot "/usr/local/apache/common/docroot/board"
 263+ ServerName board.wikimedia.org
 264+ ErrorLog logs/board.wikimedia.org-error_log
 265+
 266+ RewriteEngine On
 267+
 268+ # Primary wiki redirector:
 269+ Alias /wiki /usr/local/apache/common/docroot/board/w/index.php
 270+ RewriteRule ^/$ /w/index.php
 271+
 272+ # UseMod compatibility URLs
 273+ RewriteCond %{QUERY_STRING} ([^&;]+)
 274+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 275+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 276+
 277+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 278+
 279+ <Directory "/usr/local/apache/common/docroot/board/w">
 280+ <IfModule mod_php4.c>
 281+ php_admin_flag engine on
 282+ </IfModule>
 283+ </Directory>
 284+</VirtualHost>
 285+
 286+# Spcom wiki
 287+<VirtualHost *>
 288+ DocumentRoot "/usr/local/apache/common/docroot/spcom"
 289+ ServerName spcom.wikimedia.org
 290+ ErrorLog logs/spcom.wikimedia.org-error_log
 291+
 292+ RewriteEngine On
 293+
 294+ # Primary wiki redirector:
 295+ Alias /wiki /usr/local/apache/common/docroot/spcom/w/index.php
 296+ RewriteRule ^/$ /w/index.php
 297+
 298+ # UseMod compatibility URLs
 299+ RewriteCond %{QUERY_STRING} ([^&;]+)
 300+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 301+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 302+
 303+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 304+
 305+ <Directory "/usr/local/apache/common/docroot/spcom/w">
 306+ <IfModule mod_php4.c>
 307+ php_admin_flag engine on
 308+ </IfModule>
 309+ </Directory>
 310+</VirtualHost>
 311+
 312+# Chapcom wiki
 313+<VirtualHost *>
 314+ DocumentRoot "/usr/local/apache/common/docroot/chapcom"
 315+ ServerName chapcom.wikimedia.org
 316+ ErrorLog logs/chapcom.wikimedia.org-error_log
 317+
 318+ RewriteEngine On
 319+
 320+ # Primary wiki redirector:
 321+ Alias /wiki /usr/local/apache/common/docroot/chapcom/w/index.php
 322+ RewriteRule ^/$ /w/index.php
 323+
 324+ # UseMod compatibility URLs
 325+ RewriteCond %{QUERY_STRING} ([^&;]+)
 326+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 327+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 328+
 329+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 330+
 331+ <Directory "/usr/local/apache/common/docroot/chapcom/w">
 332+ <IfModule mod_php4.c>
 333+ php_admin_flag engine on
 334+ </IfModule>
 335+ </Directory>
 336+</VirtualHost>
 337+
 338+# Wikimaniateam wiki
 339+<VirtualHost *>
 340+ DocumentRoot "/usr/local/apache/common/docroot/wikimaniateam"
 341+ ServerName wikimaniateam.wikimedia.org
 342+ ErrorLog logs/wikimaniateam.wikimedia.org-error_log
 343+
 344+ RewriteEngine On
 345+
 346+ # Primary wiki redirector:
 347+ Alias /wiki /usr/local/apache/common/docroot/wikimaniateam/w/index.php
 348+ RewriteRule ^/$ /w/index.php
 349+
 350+ # UseMod compatibility URLs
 351+ RewriteCond %{QUERY_STRING} ([^&;]+)
 352+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 353+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 354+
 355+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 356+
 357+ <Directory "/usr/local/apache/common/docroot/wikimaniateam/w">
 358+ <IfModule mod_php4.c>
 359+ php_admin_flag engine on
 360+ </IfModule>
 361+ </Directory>
 362+</VirtualHost>
 363+
 364+# Incubator wiki
 365+<VirtualHost *>
 366+ DocumentRoot "/usr/local/apache/common/docroot/incubator"
 367+ ServerName incubator.wikimedia.org
 368+ ErrorLog logs/incubator.wikimedia.org-error_log
 369+
 370+ RewriteEngine On
 371+
 372+ # Primary wiki redirector:
 373+ Alias /wiki /usr/local/apache/common/docroot/incubator/w/index.php
 374+ RewriteRule ^/$ /w/index.php
 375+
 376+ # UseMod compatibility URLs
 377+ RewriteCond %{QUERY_STRING} ([^&;]+)
 378+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 379+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 380+
 381+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 382+
 383+ <Directory "/usr/local/apache/common/docroot/incubator/w">
 384+ <IfModule mod_php4.c>
 385+ php_admin_flag engine on
 386+ </IfModule>
 387+ </Directory>
 388+</VirtualHost>
 389+
 390+# WikiSpecies wiki
 391+<VirtualHost *>
 392+ DocumentRoot "/usr/local/apache/common/docroot/species"
 393+ ServerName species.wikimedia.org
 394+ ErrorLog logs/species.wikimedia.org-error_log
 395+
 396+ RewriteEngine On
 397+
 398+ # Primary wiki redirector:
 399+ Alias /wiki /usr/local/apache/common/docroot/species/w/index.php
 400+ RewriteRule ^/$ /w/index.php
 401+
 402+ # UseMod compatibility URLs
 403+ RewriteCond %{QUERY_STRING} ([^&;]+)
 404+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 405+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 406+
 407+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 408+
 409+ # Uploads are offsite (except on yaseo)
 410+ RewriteCond %{SERVER_ADDR} !^211\.115\.107
 411+ RewriteRule ^/upload/(.*)$ http://upload.wikimedia.org/wikipedia/species/$1 [R=302]
 412+
 413+ <Directory "/usr/local/apache/common/docroot/species/w">
 414+ <IfModule mod_php4.c>
 415+ php_admin_flag engine on
 416+ </IfModule>
 417+ </Directory>
 418+</VirtualHost>
 419+
 420+# Communications committee private wiki
 421+<VirtualHost *>
 422+ DocumentRoot "/usr/local/apache/common/docroot/comcom"
 423+ ServerName comcom.wikimedia.org
 424+ ErrorLog logs/comcom.wikimedia.org-error_log
 425+
 426+ RewriteEngine On
 427+
 428+ # Primary wiki redirector:
 429+ Alias /wiki /usr/local/apache/common/docroot/comcom/w/index.php
 430+ RewriteRule ^/$ /w/index.php
 431+
 432+ # UseMod compatibility URLs
 433+ RewriteCond %{QUERY_STRING} ([^&;]+)
 434+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 435+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 436+
 437+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 438+
 439+ <Directory "/usr/local/apache/common/docroot/comcom/w">
 440+ <IfModule mod_php4.c>
 441+ php_admin_flag engine on
 442+ </IfModule>
 443+ </Directory>
 444+</VirtualHost>
 445+
 446+# search committee private wiki
 447+<VirtualHost *>
 448+ DocumentRoot "/usr/local/apache/common/docroot/searchcom"
 449+ ServerName searchcom.wikimedia.org
 450+ ErrorLog logs/searchcom.wikimedia.org-error_log
 451+
 452+ RewriteEngine On
 453+
 454+ # Primary wiki redirector:
 455+ Alias /wiki /usr/local/apache/common/docroot/searchcom/w/index.php
 456+ RewriteRule ^/$ /w/index.php
 457+
 458+ # UseMod compatibility URLs
 459+ RewriteCond %{QUERY_STRING} ([^&;]+)
 460+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 461+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 462+
 463+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 464+
 465+ <Directory "/usr/local/apache/common/docroot/searchcom/w">
 466+ <IfModule mod_php4.c>
 467+ php_admin_flag engine on
 468+ </IfModule>
 469+ </Directory>
 470+</VirtualHost>
 471+
 472+# lang committee private wiki
 473+<VirtualHost *>
 474+ DocumentRoot "/usr/local/apache/common/docroot/langcom"
 475+ ServerName langcom.wikimedia.org
 476+ ErrorLog logs/langcom.wikimedia.org-error_log
 477+
 478+ RewriteEngine On
 479+
 480+ # Primary wiki redirector:
 481+ Alias /wiki /usr/local/apache/common/docroot/langcom/w/index.php
 482+ RewriteRule ^/$ /w/index.php
 483+
 484+ # UseMod compatibility URLs
 485+ RewriteCond %{QUERY_STRING} ([^&;]+)
 486+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 487+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 488+
 489+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 490+
 491+ <Directory "/usr/local/apache/common/docroot/langcom/w">
 492+ <IfModule mod_php4.c>
 493+ php_admin_flag engine on
 494+ </IfModule>
 495+ </Directory>
 496+</VirtualHost>
 497+
 498+
 499+# office private wiki
 500+<VirtualHost *>
 501+ DocumentRoot "/usr/local/apache/common/docroot/office"
 502+ ServerName office.wikimedia.org
 503+ ErrorLog logs/office.wikimedia.org-error_log
 504+
 505+ RewriteEngine On
 506+
 507+ # Primary wiki redirector:
 508+ Alias /wiki /usr/local/apache/common/docroot/office/w/index.php
 509+ RewriteRule ^/$ /w/index.php
 510+
 511+ # UseMod compatibility URLs
 512+ RewriteCond %{QUERY_STRING} ([^&;]+)
 513+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 514+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 515+
 516+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 517+
 518+ <Directory "/usr/local/apache/common/docroot/office/w">
 519+ <IfModule mod_php4.c>
 520+ php_admin_flag engine on
 521+ </IfModule>
 522+ </Directory>
 523+</VirtualHost>
 524+
 525+# chair private wiki
 526+<VirtualHost *>
 527+ DocumentRoot "/usr/local/apache/common/docroot/chair"
 528+ ServerName chair.wikimedia.org
 529+ ErrorLog logs/chair.wikimedia.org-error_log
 530+
 531+ RewriteEngine On
 532+
 533+ # Primary wiki redirector:
 534+ Alias /wiki /usr/local/apache/common/docroot/chair/w/index.php
 535+ RewriteRule ^/$ /w/index.php
 536+
 537+ # UseMod compatibility URLs
 538+ RewriteCond %{QUERY_STRING} ([^&;]+)
 539+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 540+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 541+
 542+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 543+
 544+ <Directory "/usr/local/apache/common/docroot/chair/w">
 545+ <IfModule mod_php4.c>
 546+ php_admin_flag engine on
 547+ </IfModule>
 548+ </Directory>
 549+</VirtualHost>
 550+
 551+# advisory board PUBLIC wiki
 552+<VirtualHost *>
 553+ DocumentRoot "/usr/local/apache/common/docroot/advisory"
 554+ ServerName advisory.wikimedia.org
 555+ ErrorLog logs/advisory.wikimedia.org-error_log
 556+
 557+ RewriteEngine On
 558+
 559+ # Primary wiki redirector:
 560+ Alias /wiki /usr/local/apache/common/docroot/advisory/w/index.php
 561+ RewriteRule ^/$ /w/index.php
 562+
 563+ # UseMod compatibility URLs
 564+ RewriteCond %{QUERY_STRING} ([^&;]+)
 565+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 566+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 567+
 568+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 569+
 570+ <Directory "/usr/local/apache/common/docroot/advisory/w">
 571+ <IfModule mod_php4.c>
 572+ php_admin_flag engine on
 573+ </IfModule>
 574+ </Directory>
 575+</VirtualHost>
 576+
Index: trunk/debs/wikimedia-apache-config-appserver/foundation.conf
@@ -0,0 +1,50 @@
 2+<VirtualHost *>
 3+ DocumentRoot "/usr/local/apache/common/docroot/foundation"
 4+ ServerName wikimediafoundation.org
 5+
 6+ ErrorLog logs/foundation.wikipedia-error_log
 7+ CustomLog logs/foundation.wikipedia-access_log combined
 8+
 9+ # Some additional CGI scripts
 10+ # for donation tracking...
 11+ ScriptAlias /cgi-bin/ "/usr/local/apache/common-local/cgi-bin/wikimediafoundation.org/"
 12+
 13+ RewriteEngine On
 14+
 15+ # extract.php pages redirected to new pages
 16+ RewriteRule ^/fundraising(\.html)?$ /wiki/Fundraising [R=301,L]
 17+ RewriteRule ^/index(\.html)?$ /wiki/Home [R=301,L]
 18+ RewriteRule ^/GNU_FDL(\.html)?$ /wiki/GNU_Free_Documentation_License [R=301,L]
 19+
 20+ #RewriteRule ^/fr/(.*)$ /extract_fr.php?title=$1 [L]
 21+
 22+ <Directory "/usr/local/apache/common/docroot/foundation">
 23+ # FIXME this is dangerous
 24+ php_admin_flag engine on
 25+ </Directory>
 26+
 27+ # Primary wiki redirector:
 28+ Alias /wiki /usr/local/apache/common/docroot/foundation/w/index.php
 29+ RewriteRule ^/$ /w/index.php
 30+
 31+ # UseMod compatibility URLs
 32+ RewriteCond %{QUERY_STRING} ([^&;]+)
 33+ RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
 34+ RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
 35+
 36+ RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
 37+
 38+ <Directory "/usr/local/apache/common/docroot/foundation/w">
 39+ <IfModule mod_php4.c>
 40+ php_admin_flag engine on
 41+ </IfModule>
 42+ </Directory>
 43+
 44+ <Directory "/usr/local/apache/common/docroot/foundation/upload">
 45+ Options Indexes FollowSymlinks FollowSymlinks
 46+ AddType text/plain .html .htm .shtml
 47+ </Directory>
 48+</VirtualHost>
 49+
 50+# vim: syn=apache sts=4 sw=4 autoindent
 51+
Index: trunk/debs/wikimedia-apache-config-appserver/wikimedia-ssl-backend.conf
@@ -0,0 +1,38 @@
 2+
 3+# Backend (unencrypted) handling for secure.wikimedia.org wikis
 4+<VirtualHost *>
 5+ ServerName secure.wikimedia.org
 6+ DocumentRoot "/usr/local/apache/common/docroot/secure"
 7+
 8+ RewriteEngine On
 9+
 10+ # Extract the pieces to restore the common base path and fake the HTTP
 11+ # domain to match our other rules.
 12+ RewriteRule ^/(wikimedia|wikipedia|wiktionary|wikiquote|wikisource|wikibooks|wikinews|mediawiki|wikispecies)/([a-z-]+)/(.*)$ /$3 [PT,E=MW_SECURE_HOST:$2.$1.org]
 13+ RewriteRule ^/$ /w/index.php
 14+
 15+ # Primary wiki redirector:
 16+ Alias /wiki /usr/local/apache/common/docroot/secure/w/index.php
 17+
 18+ <Directory "/usr/local/apache/common/docroot/secure">
 19+ Allow from all
 20+ Options FollowSymLinks
 21+ </Directory>
 22+
 23+ <Directory "/usr/local/apache/common/docroot/secure/w">
 24+ <IfModule mod_php5.c>
 25+ php_admin_flag engine on
 26+ </IfModule>
 27+ </Directory>
 28+ <Directory "/usr/local/apache/common/docroot/secure/w/extensions">
 29+ <IfModule mod_php5.c>
 30+ php_admin_flag engine off
 31+ </IfModule>
 32+ </Directory>
 33+</VirtualHost>
 34+
 35+
 36+
 37+
 38+# vim: set syn=apache autoindent :
 39+
Index: trunk/debs/wikimedia-apache-config-appserver/www.wikipedia.conf
@@ -0,0 +1,160 @@
 2+<VirtualHost *>
 3+# DocumentRoot "/usr/local/apache/htdocs/www"
 4+ DocumentRoot "/usr/local/apache/common/docroot/www.wikipedia.org"
 5+ ServerName www.wikipedia.org
 6+ ServerAlias wikipedia.org
 7+ ErrorLog logs/www.wikipedia.org-error_log
 8+ CustomLog logs/www.wikipedia.org-log combined
 9+
 10+ RewriteEngine On
 11+
 12+ # Front page...
 13+ RewriteRule ^/$ http://www.wikipedia.org/w/extract2.php?title=Www.wikipedia.org_portal&template=Www.wikipedia.org_template [L]
 14+
 15+ # search-redirect.php, let it through
 16+ RewriteRule ^/search-redirect.php /w/search-redirect.php [L]
 17+
 18+ # Language-specific links
 19+ RewriteRule ^/wiki/(aa|ab|af|am|as|ay|az|ba|be|bh|bi|bn|bo|ca|co|dz|et|eu|fa|fi|fj|fo|fy|ga|gl|gn|gu|ha|hy|ia|id|ik|is|it|iu|jv|ka|kk|kl|km|kn|ks|ku|ky|la|lo|lv|mg|mi|mk|mn|mo|mr|my|na|ne|no|oc|om|or|pa|ps|pt|qu|rm|rn|rw|sa|sd|sg|si|sk|sm|sn|so|sq|ss|st|su|sw|ta|te|tg|th|ti|tk|tl|tn|to|ts|tt|tw|ug|uk|ur|uz|vi|vo|wo|xh|yi|yo|za|zu):(.*)$ http://$1.wikipedia.org/wiki/$2 [R,L]
 20+ RewriteRule ^/wiki/(ar|bs|cs|cy|da|de|dk|el|en|eo|es|fr|gd|gv|he|hi|hr|hu|ja|ko|ml|ms|nl|pl|ro|ru|sh|sl|sr|sv|tr|zh|zh-cn|zh-tw|nds):(.*)$ http://$1.wikipedia.org/wiki/$2 [R,L]
 21+
 22+ # English Wikipedia pages
 23+ RewriteRule ^/(upload|wiki|stats|w)/(.*)$ http://en.wikipedia.org/$1/$2 [R=301,L]
 24+ RewriteRule ^/wiki$ http://en.wikipedia.org/ [R=301,L]
 25+
 26+
 27+ # Mailing lists...
 28+ RewriteRule ^/(mailman|pipermail)(.*)$ http://mail.wikipedia.org/$1$2 [R=301,L]
 29+
 30+ # Old-style english wikipedia
 31+ RewriteCond %{QUERY_STRING} ([^&;]+)
 32+ RewriteRule ^/wiki\.cgi$ http://en.wikipedia.org/wiki/%1 [R=302,L]
 33+ RewriteRule ^/wiki\.cgi$ http://en.wikipedia.org/ [R=302,L]
 34+
 35+ # Everything else
 36+ RewriteRule ^(.*)$ http://en.wikipedia.org$1 [R=301,L]
 37+
 38+ php_admin_flag engine on
 39+
 40+# <Directory "/usr/local/apache/htdocs/www">
 41+# Order Deny,Allow
 42+# Allow from env=tarpitted_bots
 43+# Deny from env=bad_bots
 44+# </Directory>
 45+# <Directory "/usr/local/apache/htdocs/www/wikistats">
 46+# AllowOverride All
 47+# ExpiresByType image/gif A0
 48+# ExpiresByType image/png A0
 49+# ExpiresByType image/jpeg A0
 50+# ExpiresByType text/css A2592000
 51+# ExpiresByType text/javascript A2592000
 52+# ExpiresByType application/x-javascript A2592000
 53+# ExpiresByType text/html A0
 54+# </Directory>
 55+
 56+</VirtualHost>
 57+
 58+<VirtualHost *>
 59+ ServerName www.wiktionary.org
 60+ ServerAlias wiktionary.org
 61+
 62+# DocumentRoot /usr/local/apache/htdocs/www
 63+ DocumentRoot /usr/local/apache/common/docroot/www.wiktionary.org
 64+ php_admin_flag engine on
 65+
 66+ RewriteEngine On
 67+
 68+ # Front page...
 69+ RewriteRule ^/$ http://www.wiktionary.org/w/extract2.php?title=Www.wiktionary.org_portal&template=Www.wiktionary.org_template [L]
 70+
 71+ # search-redirect.php, let it through
 72+ RewriteRule ^/search-redirect.php /w/search-redirect.php [L]
 73+
 74+ # Everything else
 75+ RewriteRule ^(.*)$ http://en.wiktionary.org$1 [R=301,L]
 76+</VirtualHost>
 77+
 78+<VirtualHost *>
 79+ ServerName www.wikinews.org
 80+ ServerAlias wikinews.org
 81+
 82+# DocumentRoot /usr/local/apache/htdocs/www
 83+ DocumentRoot /usr/local/apache/common/docroot/www.wikinews.org
 84+ php_admin_flag engine on
 85+
 86+ RewriteEngine On
 87+
 88+ # Front page...
 89+ RewriteRule ^/$ http://www.wikinews.org/w/extract2.php?title=Www.wikinews.org_portal&template=Www.wikinews.org_template [L]
 90+
 91+ # search-redirect.php, let it through
 92+ RewriteRule ^/search-redirect.php /w/search-redirect.php [L]
 93+
 94+ # Everything else
 95+ RewriteRule ^(.*)$ http://en.wikinews.org$1 [R=301,L]
 96+</VirtualHost>
 97+
 98+<VirtualHost *>
 99+ ServerName www.wikiquote.org
 100+ ServerAlias wikiquote.org
 101+
 102+# DocumentRoot /usr/local/apache/htdocs/www
 103+ DocumentRoot /usr/local/apache/common/docroot/www.wikiquote.org
 104+ php_admin_flag engine on
 105+
 106+ RewriteEngine On
 107+
 108+ # Front page...
 109+ RewriteRule ^/$ http://www.wikiquote.org/w/extract2.php?title=Www.wikiquote.org_portal&template=Www.wikiquote.org_template [L]
 110+
 111+ # search-redirect.php, let it through
 112+ RewriteRule ^/search-redirect.php /w/search-redirect.php [L]
 113+
 114+ # Everything else
 115+ RewriteRule ^(.*)$ http://en.wikiquote.org$1 [R=301,L]
 116+</VirtualHost>
 117+
 118+<VirtualHost *>
 119+ ServerName www.wikiversity.org
 120+ ServerAlias wikiversity.org
 121+
 122+# DocumentRoot /usr/local/apache/htdocs/www
 123+ DocumentRoot /usr/local/apache/common/docroot/www.wikiversity.org
 124+ php_admin_flag engine on
 125+
 126+ RewriteEngine On
 127+
 128+ # Front page...
 129+ RewriteRule ^/$ http://www.wikiversity.org/w/extract2.php?title=Www.wikiversity.org_portal&template=Www.wikiversity.org_template [L]
 130+
 131+ # search-redirect.php, let it through
 132+ RewriteRule ^/search-redirect.php /w/search-redirect.php [L]
 133+
 134+ # Everything else
 135+ RewriteRule ^(.*)$ http://en.wikiversity.org$1 [R=301,L]
 136+</VirtualHost>
 137+
 138+
 139+<VirtualHost *>
 140+ ServerName www.wikibooks.org
 141+ ServerAlias wikibooks.org
 142+
 143+# DocumentRoot /usr/local/apache/htdocs/www
 144+ DocumentRoot /usr/local/apache/common/docroot/www.wikibooks.org
 145+ php_admin_flag engine on
 146+
 147+ RewriteEngine On
 148+
 149+ # Front page...
 150+ RewriteRule ^/$ http://www.wikibooks.org/w/extract2.php?title=Www.wikibooks.org_portal&template=Www.wikibooks.org_template [L]
 151+
 152+ # search-redirect.php, let it through
 153+ RewriteRule ^/search-redirect.php /w/search-redirect.php [L]
 154+
 155+ # Everything else
 156+ RewriteRule ^(.*)$ http://en.wikibooks.org$1 [R=301,L]
 157+</VirtualHost>
 158+
 159+
 160+# vim: sts=4 sw=4 syn=apache autoindent
 161+
Index: trunk/debs/wikimedia-apache-config-appserver/postrewrites.conf
@@ -0,0 +1,13 @@
 2+# vim: filetype=apache
 3+<VirtualHost *>
 4+ServerName redirector.wikipedia.org
 5+ServerAlias *.wikipedia.org
 6+
 7+ RewriteEngine On
 8+
 9+ RewriteMap lowercase int:tolower
 10+ RewriteCond %{HTTP_HOST} ^www\.([^\.]+)\.wikipedia\.org
 11+ RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
 12+ RewriteRule ^www\.([^\.]+)\.wikipedia\.org(.*)$ http://$1.wikipedia.org$2 [R=301,L]
 13+
 14+</VirtualHost>
Index: trunk/debs/wikimedia-apache-config-appserver/debian/control
@@ -0,0 +1,12 @@
 2+Source: wikimedia-apache-config-appserver
 3+Section: unknown
 4+Priority: optional
 5+Maintainer: River Tarnell <river@wikimedia.org>
 6+Standards-Version: 3.6.2
 7+
 8+Package: wikimedia-apache-config-appserver
 9+Architecture: all
 10+Description: Wikimedia Apache configuration for application servers
 11+ This package contains the Wikimedia Apache configuration for running
 12+ standard application servers. It does not contain apache; install
 13+ wikimedia-task-appserver for that.
Index: trunk/debs/wikimedia-apache-config-appserver/debian/dirs
@@ -0,0 +1,2 @@
 2+/etc/apache2
 3+/etc/apache2/wmf
Index: trunk/debs/wikimedia-apache-config-appserver/debian/files
@@ -0,0 +1 @@
 2+wikimedia-apache-config-appserver_1.0_all.deb unknown optional
Index: trunk/debs/wikimedia-apache-config-appserver/debian/compat
@@ -0,0 +1 @@
 2+4
Index: trunk/debs/wikimedia-apache-config-appserver/debian/postinst
@@ -0,0 +1,41 @@
 2+#! /bin/sh
 3+# postinst script for wikimedia-task-dns-auth
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <postinst> `configure' <most-recently-configured-version>
 11+# * <old-postinst> `abort-upgrade' <new version>
 12+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 13+# <new-version>
 14+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 15+# <failed-install-package> <version> `removing'
 16+# <conflicting-package> <version>
 17+# for details, see http://www.debian.org/doc/debian-policy/ or
 18+# the debian-policy package
 19+#
 20+
 21+case "$1" in
 22+ configure)
 23+ ;;
 24+
 25+ abort-upgrade|abort-remove|abort-deconfigure)
 26+
 27+ ;;
 28+
 29+ *)
 30+ echo "postinst called with unknown argument \`$1'" >&2
 31+ exit 1
 32+ ;;
 33+esac
 34+
 35+# dh_installdeb will replace this with shell code automatically
 36+# generated by other debhelper scripts.
 37+
 38+#DEBHELPER#
 39+
 40+exit 0
 41+
 42+
Index: trunk/debs/wikimedia-apache-config-appserver/debian/postrm
@@ -0,0 +1,42 @@
 2+#! /bin/sh
 3+# postrm script for wikimedia-base
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <postrm> `remove'
 11+# * <postrm> `purge'
 12+# * <old-postrm> `upgrade' <new-version>
 13+# * <new-postrm> `failed-upgrade' <old-version>
 14+# * <new-postrm> `abort-install'
 15+# * <new-postrm> `abort-install' <old-version>
 16+# * <new-postrm> `abort-upgrade' <old-version>
 17+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 18+# for details, see http://www.debian.org/doc/debian-policy/ or
 19+# the debian-policy package
 20+
 21+
 22+case "$1" in
 23+ purge)
 24+ dpkg-divert --package wikimedia-apache-config-appserver --remove --rename \
 25+ --divert /etc/apache2/apache2.conf.default /etc/apache2/apache2.conf
 26+ ;;
 27+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 28+
 29+
 30+ ;;
 31+
 32+ *)
 33+ echo "postrm called with unknown argument \`$1'" >&2
 34+ exit 1
 35+
 36+esac
 37+
 38+# dh_installdeb will replace this with shell code automatically
 39+# generated by other debhelper scripts.
 40+
 41+#DEBHELPER#
 42+
 43+exit 0
Index: trunk/debs/wikimedia-apache-config-appserver/debian/preinst
@@ -0,0 +1,40 @@
 2+#! /bin/sh
 3+# preinst script for wikimedia-base
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <new-preinst> `install'
 11+# * <new-preinst> `install' <old-version>
 12+# * <new-preinst> `upgrade' <old-version>
 13+# * <old-preinst> `abort-upgrade' <new-version>
 14+#
 15+# for details, see http://www.debian.org/doc/debian-policy/ or
 16+# the debian-policy package
 17+
 18+
 19+case "$1" in
 20+ install|upgrade)
 21+ dpkg-divert --package wikimedia-apache-config-appserver --add --rename \
 22+ --divert /etc/apache2/apache2.conf.default /etc/apache2/apache2.conf
 23+ ;;
 24+
 25+ abort-upgrade)
 26+ ;;
 27+
 28+ *)
 29+ echo "preinst called with unknown argument \`$1'" >&2
 30+ exit 1
 31+ ;;
 32+esac
 33+
 34+# dh_installdeb will replace this with shell code automatically
 35+# generated by other debhelper scripts.
 36+
 37+#DEBHELPER#
 38+
 39+exit 0
 40+
 41+
Index: trunk/debs/wikimedia-apache-config-appserver/debian/prerm
@@ -0,0 +1,40 @@
 2+#! /bin/sh
 3+# prerm script for wikimedia-task-dns-auth
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <prerm> `remove'
 11+# * <old-prerm> `upgrade' <new-version>
 12+# * <new-prerm> `failed-upgrade' <old-version>
 13+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
 14+# * <deconfigured's-prerm> `deconfigure' `in-favour'
 15+# <package-being-installed> <version> `removing'
 16+# <conflicting-package> <version>
 17+# for details, see http://www.debian.org/doc/debian-policy/ or
 18+# the debian-policy package
 19+
 20+
 21+case "$1" in
 22+ remove|deconfigure)
 23+ ;;
 24+ upgrade)
 25+ ;;
 26+ failed-upgrade)
 27+ ;;
 28+ *)
 29+ echo "prerm called with unknown argument \`$1'" >&2
 30+ exit 1
 31+ ;;
 32+esac
 33+
 34+# dh_installdeb will replace this with shell code automatically
 35+# generated by other debhelper scripts.
 36+
 37+#DEBHELPER#
 38+
 39+exit 0
 40+
 41+
Index: trunk/debs/wikimedia-apache-config-appserver/debian/changelog
@@ -0,0 +1,5 @@
 2+wikimedia-apache-config-appserver (1.0) feisty; urgency=low
 3+
 4+ * Initial release
 5+
 6+ -- River Tarnell <river@wikimedia.org> Sat, 12 May 2007 17:55:31 +0000
Index: trunk/debs/wikimedia-apache-config-appserver/debian/conffiles
@@ -0,0 +1,12 @@
 2+/etc/apache2/apache2.conf
 3+/etc/apache2/wmf/access.conf
 4+/etc/apache2/wmf/foundation.conf
 5+/etc/apache2/wmf/nonexistent.conf
 6+/etc/apache2/wmf/redirects.conf
 7+/etc/apache2/wmf/wikimedia.conf
 8+/etc/apache2/wmf/www.wikipedia.conf
 9+/etc/apache2/wmf/en2.conf
 10+/etc/apache2/wmf/main.conf
 11+/etc/apache2/wmf/postrewrites.conf
 12+/etc/apache2/wmf/remnant.conf
 13+/etc/apache2/wmf/wikimedia-ssl-backend.conf
Index: trunk/debs/wikimedia-apache-config-appserver/debian/copyright
@@ -0,0 +1 @@
 2+Copyright (c) 2007 River Tarnell <river@wikimedia.org>.
Index: trunk/debs/wikimedia-apache-config-appserver/debian/rules
@@ -0,0 +1,102 @@
 2+#!/usr/bin/make -f
 3+# -*- makefile -*-
 4+# Sample debian/rules that uses debhelper.
 5+# This file was originally written by Joey Hess and Craig Small.
 6+# As a special exception, when this file is copied by dh-make into a
 7+# dh-make output file, you may use that output file without restriction.
 8+# This special exception was added by Craig Small in version 0.37 of dh-make.
 9+
 10+# Uncomment this to turn on verbose mode.
 11+#export DH_VERBOSE=1
 12+
 13+DESTDIR=$(CURDIR)/debian/wikimedia-apache-config-appserver
 14+
 15+CFLAGS = -Wall -g
 16+
 17+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 18+ CFLAGS += -O0
 19+else
 20+ CFLAGS += -O2
 21+endif
 22+
 23+configure: configure-stamp
 24+configure-stamp:
 25+ dh_testdir
 26+ # Add here commands to configure the package.
 27+
 28+ touch configure-stamp
 29+
 30+
 31+build: build-stamp
 32+
 33+build-stamp: configure-stamp
 34+ dh_testdir
 35+
 36+ touch build-stamp
 37+
 38+clean:
 39+ dh_testdir
 40+ dh_testroot
 41+ rm -f build-stamp configure-stamp
 42+
 43+ dh_clean
 44+
 45+install: build
 46+ dh_testdir
 47+ dh_testroot
 48+ dh_clean -k
 49+ dh_installdirs
 50+
 51+ install -d $(DESTDIR)/etc/apache2/wmf
 52+ install -m 0644 apache2.conf $(DESTDIR)/etc/apache2
 53+ install -m 0644 \
 54+ access.conf \
 55+ foundation.conf \
 56+ nonexistent.conf \
 57+ redirects.conf \
 58+ wikimedia-ssl-backend.conf \
 59+ en2.conf \
 60+ main.conf \
 61+ postrewrites.conf \
 62+ remnant.conf \
 63+ wikimedia.conf \
 64+ www.wikipedia.conf \
 65+ $(DESTDIR)/etc/apache2/wmf
 66+
 67+# Build architecture-independent files here.
 68+binary-indep: build install
 69+# We have nothing to do by default.
 70+
 71+# Build architecture-dependent files here.
 72+binary-arch: build install
 73+ dh_testdir
 74+ dh_testroot
 75+ dh_installchangelogs
 76+ dh_installdocs
 77+ dh_installexamples
 78+# dh_install
 79+# dh_installmenu
 80+# dh_installdebconf
 81+# dh_installlogrotate
 82+# dh_installemacsen
 83+# dh_installpam
 84+# dh_installmime
 85+# dh_installinit
 86+ dh_installcron
 87+# dh_installinfo
 88+ dh_installman
 89+ dh_link
 90+ dh_strip
 91+ dh_compress
 92+ dh_fixperms
 93+# dh_perl
 94+# dh_python
 95+# dh_makeshlibs
 96+ dh_installdeb
 97+ dh_shlibdeps
 98+ dh_gencontrol
 99+ dh_md5sums
 100+ dh_builddeb
 101+
 102+binary: binary-indep binary-arch
 103+.PHONY: build clean binary-indep binary-arch binary install configure
Property changes on: trunk/debs/wikimedia-apache-config-appserver/debian/rules
___________________________________________________________________
Added: svn:executable
1104 + *
Index: trunk/debs/wikimedia-apache-config-appserver/debian/README.Debian
@@ -0,0 +1,6 @@
 2+wikimedia-apache-config-appserver
 3+-----------------------
 4+
 5+This package contains the Wikimedia Apache configuration for running
 6+standard application servers. It does not contain apache; install
 7+wikimedia-task-appserver for that.
Index: trunk/debs/wikimedia-apache-config-appserver/nonexistent.conf
@@ -0,0 +1,8 @@
 2+# First entry in virtual host list, for non-existent domains
 3+<VirtualHost *>
 4+ DocumentRoot "/usr/local/apache/common/docroot/default"
 5+ ServerName nonexistent
 6+ ErrorLog logs/nonexistent-error_log
 7+ CustomLog logs/nonexistent-log combined
 8+</VirtualHost>
 9+