I have protected a directory where my website is placed with password (.htaccess + .htpasswd). The protection works like a charm. However, there is one problem. On the same domain I have SOLR server set up and my website uses remote connections to retrieve data from it (ie. PHP's file_get_contents). Unfortunately this does not work as it is password protected as well.
What do I do to allow my server to connect to itself without HTTP authentication? Is it possible?
Thanks a lot!