Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Apache Password Protect Exclusions?

    I'm password protecting a wordpress's admin directory on my Linux box with:
       <Directory "/path/wwwwebsitecom/wp-admin">
          AllowOverride None
          AuthType Basic
          AuthName "Blog Maintenance"
          AuthUserFile /path/passwd.conf
          <Limit GET PUT POST DELETE>
             require user someuser
    I would like to exclude a few files under wp-admin from this password requirement. Can anyone tell me how to do it? I'm lost. I'm running Apache 1.3.34 still.

    Last edited by atreyu; 05-12-2013 at 04:04 AM. Reason: added CODE tags to aid in readability

  2. #2
    hello and welcome!

    you can password-protect specific files like this:

    AuthUserFile /etc/httpd/.htpasswd
    AuthName "secret place"
    AuthType Basic
    <Limit GET POST>
    Options +ExecCGI
    AddHandler cgi-script cgi pl
    DirectoryIndex index.html
    <Files "file2">
      require user someuser
    so i would either list all my password-protected files like "file2" above, or i'd just put them in another dir, and password protect that dir and leave the other one open.

  3. #3
    This is too unrealistic with all the wp-admin files. I was hoping to password protect * like I have done in my example, but then have like a list of files negated.

    <Files "/path/wwwwebsitecom/wp-admin/file2">
    Allow from all

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts