ReleaseEngineering/Archive/Mirror Releases on dev-stage01

From MozillaWiki
Jump to: navigation, search

This page is obsolete

by default, every request to dev-stage01 is served using the content from http://stage.mozilla.org (via a proxy pass directive) unless the requested resource is present locally.

Here is the apache rewrite rule that makes it possible (from /etc/httpd/conf.d/release-candidates.conf):

# general mechanism
RewriteEngine on

# Do not proxy index.html pages. they are "virtual" and don't exist on disk
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule   ^.*index\.html - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule   ^(.+) http://stage.mozilla.org$1 [L]

no need to add your releases/candidates rules anymore.