Skip to content

Instantly share code, notes, and snippets.

@oremj
Created October 30, 2009 23:40
Show Gist options
  • Save oremj/222826 to your computer and use it in GitHub Desktop.
Save oremj/222826 to your computer and use it in GitHub Desktop.
<VirtualHost *:80 *:81>
ServerName preview.addons.mozilla.org
SetEnv HTTPS on
DocumentRoot /data/www/addons.mozilla.org-preview/site/app/webroot
<Directory /data/www/addons.mozilla.org-preview>
AllowOverride All
</Directory>
<Directory /data/www/addons.mozilla.org-remora/site/app/webroot/ebay/ebay-extension>
RewriteEngine On
RewriteBase /ebay/ebay-extension
AllowOverride None
RewriteRule ^$ http://releases.mozilla.com/ebay/2.0.0.3-online/ebay-0.9.7.xpi [R,L]
RewriteRule ^ebay-0.9.6.7.xpi$ http://releases.mozilla.com/ebay/2.0.0.3-online/ebay-0.9.6.7.xpi [R,L]
RewriteRule ^ebay-0.9.7.xpi$ http://releases.mozilla.com/ebay/2.0.0.3-online/ebay-0.9.7.xpi [R,L]
</Directory>
<Location /api>
Order Deny,Allow
Allow From 10.2.0.0/16
Deny From All
</Location>
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" custom
ErrorLog "|/data/bin/multi_logger.pl addons_preview '/var/log/httpd/preview.addons.mozilla.org/error_log_%Y-%m-%d-%H 3600 -0'"
CustomLog "|/usr/sbin/rotatelogs /var/log/httpd/preview.addons.mozilla.org/access_%Y-%m-%d-%H 3600 -0" custom env=!image
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment