Fixed and compacted rules

pull/7/head
Robin Clarke 12 years ago
parent 9cd3fcf314
commit e1688275a8
  1. 22
      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" ) ) )
}

Loading…
Cancel
Save