Secure Solr instance on AWS server using http basic authentication

I am trying to secure an AWS server with http basic auth. Having put an .htaccess file pointing to an .htpasswd file in /opt/bitnami/apache2/htdocs it only secures the http://ec2-xx-xx-xx-xxx.x-x-x.compute.amazonaws.com page. The subdirectory http://ec2-xx-xx-xx-xxx.x-x-x.compute.amazonaws.com/solr is still accessible without authentication.

I tried to put the .htaccess file in the following places but it did not secure the access: /opt/bitnami/apache-solr/solr/ /opt/bitnami/apache-solr/solr-webapp/webapp (where admin.html for the GUI)

So my question is where to put the .htaccess file to secure the GUI access and also only allow http basic auth-protected queries on its cores.

Answers


Apparently, I cannot protect it via htaccess, instead, http base auth is provided by Jetty configuration as explained in Jetty realm example.


Need Your Help

Managing timezone in php with ics date/time format

php date time icalendar

Ok, I'm using an ICS parser utility to parse google calendar ICS files. It works great, except google is feeding me the times of the events at UCT.. so I need to subtract 5 hours now, and 6 hours w...

Spring Data / REST - Javascript (jquery, backbone) restful calls end up with a 404 response

jquery backbone.js spring-data spring-data-jpa spring-data-rest

I've got an example app: https://github.com/LateralThoughts/orsyp-frontend-training/tree/master/zupr_trackr.