How to disable solr admin page

后端 未结 4 749
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 04:44

For production, it feels unsafe to have a solr admin which even doesn\'t ask login credentials. How can I disable the solr admin page which comes by default? I simply want my we

4条回答
  •  灰色年华
    2021-02-06 05:26

    You could protect your admin page with a password just by adding a security constraint to the Solr web application.

    Snippet for Solr 3.6:

      
        
        
        Solr admin
          
          /evu/admin/*
          /webcrawl/admin/*
        
        
          Solr-Admin
        
        
          CONFIDENTIAL
        
      
    
      
        
        
          Solr Update
          /update/*
          /evu/update/*
          /webcrawl/update/*
        
        
          Solr-Admin
          Solr-Update
        
        
          CONFIDENTIAL
        
      
    
      
        
        
          Solr Admin images
          *.png
        
        
          *
        
      
    
      
        The role that is required to administer Solr
        Solr-Admin
      
      
        The role that is required to update the Solr index
        Solr-Update
      
    
      
        BASIC
        Solr
      
    
    

    In Solr 4 you have to protect the following resources for the admin interface:

    /admin/*
    /admin.html
    

提交回复
热议问题