Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A copy of the mozilla.org PHP site.
JavaScript PHP Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
MPL
about
access
book
community
contact
contribute
credits
developer
drumbeat
foundation
grants
hacking
images
includes
legal/eula
phonebook
ports
projects
rhino
script
security
start
style
support
thunderbird Merge revision 99475 from staging to trunk
.htaccess
403.html
404.html
410.html
500.html
503.html
README
css
favicon.ico
index.de.html
index.fr.html
index.hr.html
index.html
index.pt-BR.html
index.sq.html

README

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
Something went wrong with that request. Please try again.