Where to set environment variables for Solr depends on how you have installed 
it.

If you run directly from a unpacked tgz download, then <solr-root>/bin/solr.in 
<http://solr.in/>.sh can be used. Or you can set env.var in your shell before 
running bin/solr start

If you have installed Solr with the linux install script, then look at 
/var/solr/solr.in <http://solr.in/>.sh for the same

If you run with SolrOperator in Kubernetes, then set envs in your SolrCloud CRD 
manifest.

etc

Jan

> 24. mars 2026 kl. 16:17 skrev Matthias Apitz <[email protected]>:
> 
> El día martes, marzo 24, 2026 a las 03:05:32p. m. +0000, Gadsby, Eric T. via 
> users escribió:
> 
>> Dear Friends,
>> 
>> I hope all are enjoying a good day.   We are installing Solr in a new 
>> hosting environment and we need to access the WebUI from another host.   The 
>> default settings point to the servers loopback.  I know from:  
>> https://solr.apache.org/guide/solr/9_10/deployment-guide/taking-solr-to-production.html#security-considerations
>>  that should be changed but I admit I am not sure the correct place to make 
>> the change.   All help would be greatly appreciated.   Thanks in advance!
>> 
>> 
> 
> See in solr.in.sh:
> 
> In solr-9.8.0/bin/solr.in.sh it says about SOLR_HOST:
> 
> # By default the start script uses "localhost"; override the hostname here
> # for production SolrCloud environments to control the hostname exposed to 
> cluster state
> 
> I'd add for clarification the following statement:
> 
> # Note: Setting SOLR_HOST does not influence where the LISTEN gets
> # created; for this see SOLR_JETTY_HOST below.
> 
> HIH   
> 
>       matthias
> 
> -- 
> Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub
> 
> Jens Spahn (CDU, 11.3.2025 in FAZ):
> "Wir können uns verteidigen lernen oder alle Russisch lernen."
> "We can learn to defend ourselves or we can all learn Russian."
> "O podemos aprender a defendernos o todos podemos aprender ruso."
> 
> Ich ziehe es vor, Russisch zu lernen. I prefer to learn russian.
> Yo prefiero aprender ruso.

Reply via email to