Another_Omeka_User
Basic Pleskian
Hi, I need to set up a reverse proxy for the solr admin console (solr 5.3.1), which is on a separate port (8983) but totally open to the outside world (yikes). I can't just firewall the port or solr basic authentication because a site on port 80 accesses it (php scripts use it search the index); the scripts break and throw errors on the search when either of these methods is employed. So someone suggested I set up a Reverse Proxy instead. I'm totally unfamiliar with how to do this. However, I followed directions online that told me to modify the apache config file (CentOS 7) with the following lines:
<Location /solr >
AuthName "Secure Area"
AuthType Basic
AuthUserFile /path/to/htpasswd/.htpasswd require valid-user
</Location>
ProxyPass /solr http://localhost:8983/solr
ProxyPassReverse /solr http://localhost:8983/solr
And set up the htpasswd, which I did. When I restart the server, nothing changes, I'm never prompted for a password. (It also said I needed to edit the jetty file to default to localhost, which makes sense, but when I do that I get a broken page.)
To be honest, despite reading numerous manuals and blog posts, I don't really understand why this is breaking or even how to tell when/if the proxy is working. So now I wonder if it's possible instead to just set this all up in the Plesk panel because maybe I'm messing something up...
Any suggestions, thoughts, or advice?
<Location /solr >
AuthName "Secure Area"
AuthType Basic
AuthUserFile /path/to/htpasswd/.htpasswd require valid-user
</Location>
ProxyPass /solr http://localhost:8983/solr
ProxyPassReverse /solr http://localhost:8983/solr
And set up the htpasswd, which I did. When I restart the server, nothing changes, I'm never prompted for a password. (It also said I needed to edit the jetty file to default to localhost, which makes sense, but when I do that I get a broken page.)
To be honest, despite reading numerous manuals and blog posts, I don't really understand why this is breaking or even how to tell when/if the proxy is working. So now I wonder if it's possible instead to just set this all up in the Plesk panel because maybe I'm messing something up...
Any suggestions, thoughts, or advice?