Hi Lee,

Solr was installed on a different server that doesn't run anything else so
we can tweak the resources independently of what the web server needs. But
I don't see a reason why this workaround wouldn't work with a Solr install
on the same server.

The subdomain isn't tied to Solr in any way. All our Solr knows is that
it's listening on 1.2.3.4 on its default port 8983 (and the network team
made sure only our own servers can reach it). It's nginx that's listening
for requests on the subdomain on port 443. You can let nginx proxy those
requests to 127.0.0.1:8983 instead of a different server. If Solr only
accepts connections on 127.0.0.1, external clients can only connect through
the proxy with whatever authentication you set up there. Of course this
doesn't prevent a client on the same server (e.g. running under another
Plesk subscription) from connecting directly to 127.0.0.1 as well and
bypassing that authentication.

Thomas

Op di 4 jun 2024 om 04:53 schreef Lee Daniel <l...@caribbeannewmedia.com>:

> Thanks much for your responses guy.
>
>
> *# Dmitri*
>
> *## Another Hostname or IP address*
>
> I really just want Solr to be Secure.. I know Basic Auth and
> RuleBasedAuth is not enough.
> I think in my situation I may need to alter the hostname.
> I will ask them how to do this.
> In the Solr.in.sh, there is SOLR_HOST but I may have the wrong idea on
> how this works.
>
> *## Drupal*
>
> The Drupal site is hosted on the same server as Solr.
> I installed it on the same server.
> This server host multiple sites, which we plan to use Solr for some of
> them. One IP multiple sites.
>
>
> *# Thomas*
>
> Unfortunately, Solr is on the same server that I host the sites.
>
> This is a clever workaround.
> Did you install Solr on the separate server?
>
> I'm gonna ask a stupid question. I'm mostly are coder.
> How did you  get Solr to listen on that IP and port  for a subdomain you
> created in Plesk?
>
>
> Thanks,
>
> Lee Daniel
>
> On 2024-06-02 23:56, Dmitri Maziuk wrote:
> > On 6/2/24 21:46, Lee Daniel wrote:
> >> That's exactly what's going on for that specific hostname.
> >> Plesk is on port 80  and solr is on 8983.
> >>
> >> What are my options here?
> >
> > Well... that depends on what you want to achieve. Basically virtual
> > hosts are either name-based or ip-based, so you need either another
> > DNS name or another IP address to run both on port 80.
> >
> > What you could do is have nginx listen on port 443 and proxy that to
> > solr. But I expect that is actually taken by Plesk, so you need some
> > other port like 4343.
> >
> > Where's drupal come in in all this? Where does it live?
> >
> > Dima
> >

Reply via email to