forked from bvibber/mediawiki-svn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundation.conf
50 lines (37 loc) · 1.67 KB
/
foundation.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<VirtualHost *>
DocumentRoot "/usr/local/apache/common/docroot/foundation"
ServerName wikimediafoundation.org
ErrorLog /usr/local/apache/logs/foundation.wikipedia-error_log
CustomLog /usr/local/apache/logs/foundation.wikipedia-access_log combined
# Some additional CGI scripts
# for donation tracking...
ScriptAlias /cgi-bin/ "/usr/local/apache/common-local/cgi-bin/wikimediafoundation.org/"
RewriteEngine On
# extract.php pages redirected to new pages
RewriteRule ^/fundraising(\.html)?$ /wiki/Fundraising [R=301,L]
RewriteRule ^/index(\.html)?$ /wiki/Home [R=301,L]
RewriteRule ^/GNU_FDL(\.html)?$ /wiki/GNU_Free_Documentation_License [R=301,L]
#RewriteRule ^/fr/(.*)$ /extract_fr.php?title=$1 [L]
<Directory "/usr/local/apache/common/docroot/foundation">
# FIXME this is dangerous
php_admin_flag engine on
</Directory>
# Primary wiki redirector:
Alias /wiki /usr/local/apache/common/docroot/foundation/w/index.php
RewriteRule ^/$ /w/index.php
# UseMod compatibility URLs
RewriteCond %{QUERY_STRING} ([^&;]+)
RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
<Directory "/usr/local/apache/common/docroot/foundation/w">
<IfModule mod_php4.c>
php_admin_flag engine on
</IfModule>
</Directory>
<Directory "/usr/local/apache/common/docroot/foundation/upload">
Options Indexes FollowSymlinks FollowSymlinks
AddType text/plain .html .htm .shtml
</Directory>
</VirtualHost>
# vim: syn=apache sts=4 sw=4 autoindent