blob: 405a3236a184e5da53ba57d9590b1cae29e14c9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#redirect http to https for /shell
server.modules += ( "mod_redirect" )
$HTTP["url"] =~ "^/shell" {
$HTTP["scheme"] == "http" {
# capture vhost name with regex conditiona -> %0 in redirect pattern
# must be the most inner block to the redirect rule
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "https://%0$0")
}
}
}
#proxy for shellinaboxd
$HTTP["url"] =~ "/shell/" {
proxy.server = ( "" => (
("host" => "127.0.0.1", "port" => 4200)
))
}
|