You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/10/02 16:48:52 UTC

[Solr Wiki] Update of "SolrProxyConfiguration" by DanBolser

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrProxyConfiguration" page has been changed by DanBolser:
https://wiki.apache.org/solr/SolrProxyConfiguration

Comment:
Done and done

New page:
Configuring Solr to use a proxy directly (i.e. if you use sharded searches, and you need Solr to see the web via a proxy) is not possible. However, you can configure the proxy in the JVM, and conveniently, Solr uses the SystemDefaultHttpClient when fetching data, which will respect those settings.

So, if you're using Jetty, it's as simple as this:

{{{
java -jar start.jar \
    -Dhttp.proxyHost=my.proxy.url.or.ip \
    -Dhttp.proxyPort=1234
}}}

Don't include the protocol if you use a URL.