e.g.
location /solr/select {
proxy_pass http://YourSolrServer/solr/select;
proxy_buffering on;
}
Check the Nginx docs for more examples. You could achieve the same result with Apache, but for our purposes Nginx scaled better.
Also you might want to let Nginx gzip the json content returned to Ajax-Solr.
Cheers.
Unless you have some really unique requirements to fulfil... ;-)
Personally, I can't see the advantage of writing custom code just to proxy Ajax-Solr requests. More things to maintain, more things to document, more things to break.
Unless you have some really unique requirements to fulfil... ;-)