문제

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!

도움이 되었습니까?

해결책

Add the line

Allow from 192.168.0.1/24

to the Auth definition. After Require valid-user is a good place. Change the ip number if necesary.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top