This guide is loosely based on this guide from MaxCDN. We will use it to set up two rules which together form the Yavli Proxy implementation.
Match Criteria
Match Type: Regular Expression
Match Location: ^\/(?!yproxy).*\.(jpg|jpeg|gif|png|bmp|ico)$
Case Sensitive: No – leave unchecked.
Features
Directive: [ERROR PAGE] 404 =200 /yproxy$request_uri
Click Add to save the rule.
Match Criteria
Match Type: Regular Expression
Match Location: /yproxy(.*)$
Case Sensitive: No – leave unchecked.
Features
Directive: [MODIFY REQEUST HEADER] X-Forwarded-For $proxy_add_x_forwarded_for
Directive: [MODIFY REQEUST HEADER] X-Forwarded-Host $host
Directive: [PROXY PASS] http://steg.yavli.com
Click Add to save the rule.
The Yavli proxy should now be operational.