summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-19 15:50:38 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-19 21:44:08 +0200
commit356bfe73b9b25c9cdf86dd9e125f411824db74fc (patch)
tree9e8fab91e2acf210a405b351e2e60c4ec6abdc7e /.htaccess
parentf04f94b31b39d3c93ab8723dc2061b04f9a28863 (diff)
downloadbugzilla-356bfe73b9b25c9cdf86dd9e125f411824db74fc.tar.gz
bugzilla-356bfe73b9b25c9cdf86dd9e125f411824db74fc.tar.xz
Bug 1357809 - Add endpoints for future cloud-services integration
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess13
1 files changed, 13 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index f76d352e2..3cc7c69ea 100644
--- a/.htaccess
+++ b/.htaccess
@@ -44,6 +44,19 @@ Redirect permanent /etiquette.html https://bugzilla.mozilla.org/page.cgi?id=etiq
Redirect permanent /duplicates.html https://bugzilla.mozilla.org/duplicates.cgi
RewriteEngine On
+# This rewrite rule skips over the rest, which is good because the load balancers
+# might hit this file once a second and we want apache to not take much time.
+# Note that this file is generated by checksetup.pl
+RewriteRule ^__lbheartbeat__$ - [L]
+
+# allow cloud-services to identify the version we're running.
+# version.json is also generated by checksetup.pl
+RewriteRule ^__version__$ version.json [L]
+
+# Unlike lbheartbeat, this endpoint is called less frequently (every five minutes or so)
+# heartbeat.cgi returns 200 if the DB and memcached are both working, and 500 otherwise.
+RewriteRule ^__heartbeat__$ heartbeat.cgi [L]
+
RewriteRule ^template_cache/ - [F,L,NC]
RewriteRule ^template_cache.deleteme/ - [F,L,NC]
RewriteRule ^review(.*) page.cgi?id=splinter.html$1 [QSA]