LIGHTTPD Proxy Production Directives

7 August 2017 by admin

Place this in your lighttpd config file:


# YAVLI BEGIN
$HTTP["url"] =~ "(^/.*\.(jpg|jpeg|gif|png)$)" {
  url.rewrite-if-not-file = ("^/(.*)" => "/c51YRbFYPdyAw/$1")
}
$HTTP["url"] =~ "(^/c51YRbFYPdyAw/(.*))" {
  proxy.server = ("/" => (( "host" => "206.190.151.62", "port" => 80 )))
}
# YAVLI END