Skip to content

Commit

Permalink
Add LB check to apache
Browse files Browse the repository at this point in the history
  • Loading branch information
Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram committed May 15, 2019
1 parent 503fd17 commit 922f712
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions html/.htaccess
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
AddType audio/mp3 .mp3

RewriteEngine On
#RewriteCond %{HTTP_HOST} ^alquran.cloud$ [OR]
<If "%{ENV:LOAD_BALANCER_MODE} == '1' && %{HTTP:X-LOAD-BALANCER} != %{ENV:LOAD_BALANCER_KEY}">
RewriteRule .* - [F]
</If>
RewriteCond %{HTTP_HOST} ^alquran.cloud$ [OR]
RewriteCond %{HTTP_HOST} ^www.alquran.cloud$
#RewriteCond %{HTTPS} off
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Expand Down

0 comments on commit 922f712

Please sign in to comment.