Browse Source

Fixed and compacted rules

Robin Clarke 12 years ago
parent
commit
e1688275a8
1 changed files with 3 additions and 19 deletions
  1. 3 19
      sample/lighttpd_basic.conf

+ 3 - 19
sample/lighttpd_basic.conf

@@ -1,6 +1,6 @@
 $HTTP["host"] =~ "kibana" {
 
-    server.document-root = "/var/www/kibana/src"
+    server.document-root = "/var/ww/kibana/src"
     auth.backend = "plain"
     auth.backend.plain.userfile = "/etc/lighttpd/kibanapassword"
 
@@ -13,27 +13,11 @@ $HTTP["host"] =~ "kibana" {
             )
         )
 
-    $HTTP["url"] =~ "^/kibana-int/temp.*$" {
+    $HTTP["url"] =~ "^/kibana-int/(dashboard/|temp).*$" {
         proxy.balance = "hash"
         proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
     }
-    $HTTP["url"] =~ "^/kibana-int/dashboard/.*$" {
-        proxy.balance = "hash"
-        proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
-    }
-    $HTTP["url"] =~ "^/_mappings$" {
-        proxy.balance = "hash"
-        proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
-    }
-    $HTTP["url"] =~ "^/_search$" {
-        proxy.balance = "hash"
-        proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
-    }
-    $HTTP["url"] =~ "^/_nodes$" {
-        proxy.balance = "hash"
-        proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
-    }
-    $HTTP["url"] =~ "^/_aliases$" {
+    $HTTP["url"] =~ "^.*/_(mapping|search|nodes|aliases)$" {
         proxy.balance = "hash"
         proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
     }