forked from jlongster/mozilla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
68 lines (47 loc) · 1.53 KB
/
README
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Mozilla.org
===========
Description
-----------
This is the main mozilla.org site, supporting many languages.
Requirements
------------
1. Make sure name-based virtual hosting is enabled. In Apache, check for this
line in httpd.conf:
NameVirtualHost *:80
1. DNS entries for any languages you will be supporting. (For testing,
pointing *.name.com -> name.com will work well).
Installation
--------------
1. (Assuming Apache) create a virtual host for your site that supports all DNS
entries you made. Also be sure to add the Rewrite rules below.
Example:
<VirtualHost *:80>
ServerName www.mozilla.com
ServerAlias *.www.mozilla.com
DocumentRoot /data/www.mozilla.com
AddType application/x-httpd-php .php .html
DirectoryIndex index.php index.html
Options -Indexes
RewriteEngine On
RewriteMap toupper int:toupper
</VirtualHost>
Notice that we're parsing html as php - this is for backwards compatibility
with the stuff we migrated from mozilla-europe.
2. Check out the code from svn.mozilla.org/projects/mozilla.org/trunk/ to your
webroot.
3. Copy /includes/config.inc.php-dist to /includes/config.inc.php, and fill
out all variables.
Testing
-------
Make sure the following URLs load without errors:
/firefox/2.0/firstrun
/firefox/2.0/whatsnew
/firefox/central
/firefox/help
/firefox/customize
/firefox/community
/firefox/about
/firefox/contact
Questions?
----------
Email: slice@silverorange.com