gpt4 book ai didi

asp.net-mvc - Azure VM 上的安全 Solr 搜索引擎

转载 作者:行者123 更新时间:2023-12-02 03:26:40 24 4
gpt4 key购买 nike

我已在 Azure VM 上安装了 Solr 实例,并且还在 port:8983 上配置了 Solr这样我就可以在我的 MVC 网站的任何地方访问它。例如:_mysolr.azurewebsites.net:8983_

我的 MVC 网站是在 Azure 上设置的。我想限制 Solr,以便除了我在 Azure 中的 MVC 网站之外没有其他人可以访问。

如何在 Solr 或 Azure VM 上设置安全性,以便除了我自己的网站获取搜索结果之外没有人可以访问它。

最佳答案

我不知道你正在寻找的内容是否与我所做的相似。假设您已更改

   jetty.xml,webdefault.xml and created realm.properties for username and password

我已经使用 cake php 设置了 solr,为了安全起见,我添加了用户名和密码。这只允许我的网站访问 solr。

 What my code looks like in php
Change the SOLRHOST value to
define("SOLRHOST", "username:password@localhost");

make changes in delta import command
* * * * * wget --quiet -O /dev/null
'http://username:password@localhost:8983/solr/dataimport?command=delta-import'

所以现在只有那些拥有用户名和密码的页面或网站才能访问您的 solr。让我知道这是否是您正在寻找的内容

关于asp.net-mvc - Azure VM 上的安全 Solr 搜索引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29964373/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com