Skip to content

Commit e168827

Browse files
committed
Fixed and compacted rules
1 parent 9cd3fcf commit e168827

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

sample/lighttpd_basic.conf

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$HTTP["host"] =~ "kibana" {
22

3-
server.document-root = "/var/www/kibana/src"
3+
server.document-root = "/var/ww/kibana/src"
44
auth.backend = "plain"
55
auth.backend.plain.userfile = "/etc/lighttpd/kibanapassword"
66

@@ -13,27 +13,11 @@ $HTTP["host"] =~ "kibana" {
1313
)
1414
)
1515

16-
$HTTP["url"] =~ "^/kibana-int/temp.*$" {
16+
$HTTP["url"] =~ "^/kibana-int/(dashboard/|temp).*$" {
1717
proxy.balance = "hash"
1818
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
1919
}
20-
$HTTP["url"] =~ "^/kibana-int/dashboard/.*$" {
21-
proxy.balance = "hash"
22-
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
23-
}
24-
$HTTP["url"] =~ "^/_mappings$" {
25-
proxy.balance = "hash"
26-
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
27-
}
28-
$HTTP["url"] =~ "^/_search$" {
29-
proxy.balance = "hash"
30-
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
31-
}
32-
$HTTP["url"] =~ "^/_nodes$" {
33-
proxy.balance = "hash"
34-
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
35-
}
36-
$HTTP["url"] =~ "^/_aliases$" {
20+
$HTTP["url"] =~ "^.*/_(mapping|search|nodes|aliases)$" {
3721
proxy.balance = "hash"
3822
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
3923
}

0 commit comments

Comments
 (0)