Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9072497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:10:56+00:00 2026-06-16T18:10:56+00:00

I have recently installed Solr on server and i want to restrict only local

  • 0

I have recently installed Solr on server and i want to restrict only local users can access it with .htaccess

site.com:8983/solr/admin    [ restrict all user]

And below is the .htaccess code

RewirteRule on
<FilesMatch "127.0.0.1:8983/solr/admin">
    Order Deny, Allow
    Deny form all
    Allow 127.0.0.1
</FilesMatch>

Or is there any method we can protect / restrict Solr Admin on site.com:8983/solr/admin accessing from other users
Only local ip users can use it..

And i tried this one, but its not working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:10:57+00:00Added an answer on June 16, 2026 at 6:10 pm

    Your <FilesMatch "127.0.0.1:8983/solr/admin"> line will never match anything because you’ve stuck the hostname and port in the regular expression. Try using the Location container instead:

    <Location "/solr/admin">
        Order Deny, Allow
        Deny from all
        Allow 127.0.0.1
    </Location>
    

    Or better yet, Directory:

    <Directory "/path/to/your/document/root/solr/admin"> 
        Order Deny, Allow
        Deny from all
        Allow 127.0.0.1
    </Directory>
    

    You’ll need to fill in the full path to the solr/admin directory.

    Get rid of the RewirteRule on line, it doesn’t do anything and it’s not even spelled right and will cause a 500 error.

    However, neither of these directives can be use in an htaccess file. You need to use these in either the server of vhost config. If you must use an htaccess file, then create an htaccess file in your solr/admin directory and simply put these directives in it:

    Order Deny, Allow
    Deny from all
    Allow 127.0.0.1
    

    Or, in the htaccess file in your document root:

    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} !127.0.0.1
    RewriteRule ^/?solr/admin - [L,F]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently installed SVN on Windows Server 2003. I can execute svn commands
Bah! I have recently installed the MiniProfiler from http://code.google.com/p/mvc-mini-profiler/ attempting to find all the
We have just recently got our SVN server installed. My developers have added the
I have recently installed VS 2008. Now I want to open my VS2010 project's
I have recently installed Subversion onto a Linux server ( CentOS ) and everything
I have recently installed .net 3.5 SP1. When I deployed a compiled web site
I am new to Maven and have recently installed nexus. Now I want to
I recently installed Community Builder for Joomla!. I can't seem to have a capcha
I have recently installed full sql server 2008 (trial version), for doing a research
I have a headless workstation running Ubuntu 12.04 server and recently installed new Tesla

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.