<div>Hi List,</div><div><br></div><div>I'm new to Varnish, so please apologize if the question was already asked before.</div><div><br></div><div>I've a homemade web server running on my intranet. It works like this:</div>
<div><br></div><div>1. If an HTTP request arrives without a special header "X-RAWDATA: ...",</div><div>this web server forward the request to the live Web, get the response, and send it back (i.e it plays a role of a basic proxy).</div>
<div>2. Now, if a request contains the special header "X-RAWDATA: ...", then the web server will search the response in</div><div>its internal database (complex computations), and send it back.</div><div><br></div>
<div>Point 2 works very very well. But not point 1 as my web server isn't a true HTTP proxy.</div><div><br></div><div>So, my question is simple:</div><div>Could I tell Varnish to inspect the HTTP headers, and decide:</div>
<div><br></div><div>a. If the special header "X-RAWDATA: ..." doesn't exists, let the request go to the live Web directly.</div><div>b. Otherwise, forward the request to my web server.</div><div><br></div><div>
Hope I'm clear guys.</div><div>Thanks in advance.</div><div>-- </div><div>Zab</div><div><br></div>