`
Sep 19

Apache logoAs much as you wish it is true, it is not. I did some googling when I need to disable the HTTP authentication on one directory from the rest of the directories.

Usually you will have one configuration for all similar directories (i.e. /home/*/public_html) that enable the HTTP authentication. Now, you want only one of the directories (i.e. /home/mickeyckm/public_html) to be open to the public.

So all you need to do is to makesure the single directory configuration doesn't have any Auth*** entries and add in "Satisfy Any" and "AllowOverride All" to the configuration as highlighted below.

Below is a sample of the Apache configuration file:

<Directory /home/*/public_html>
        Options +Indexes
        AuthName "****"
        AuthType Basic
        AuthUserFile /****/****/****/passwords
        Require mickeyckm **** **** **** ****
        PythonPath "['/****/****/****/****']+sys.path"
        AddHandler mod_python .psp
        PythonHandler mod_python.psp
        PythonDebug On
        AllowOverride All
        PythonInterpPerDirectory On
        PythonAutoReload On
</Directory>

<Directory /home/mickeyckm/public_html>
        Options +Indexes
        PythonPath "['/****/****/****/****']+sys.path"
        AddHandler mod_python .psp
        PythonHandler mod_python.psp
        PythonDebug On
        PythonAutoReload On
        PythonInterpPerDirectory On
        Satisfy Any
        Allow from All
        AllowOverride All
</Directory>

[Image taken from here]

Share and Enjoy:
  • Digg
  • Facebook
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Technorati
  • Live
  • NewsVine
  • YahooMyWeb
  • e-mail

written by mangoorange \\ tags: , ,


One Response to “AuthType None??”

  1. 1. Sam Says:

    Ahh, thanks. I’ve been looking for a simple way to do this for ages.

Leave a Reply

You must be logged in to post a comment.