views:

21

answers:

1

I'm working on an upcoming project, but the team needs to access it online. I've setup (for now) Basic Authentication using:

    <Directory /var/www/html>
            AuthType Basic
            AuthName "Staging"
            AuthUserFile /etc/passwd
            Require valid-user
    </Directory>

But, I need one file to be publically accessible (a 3rd party service needs to ping it, but can't handle Basic Authentication. Is it possible to "turn off" authentication for a specific file ("specific-file.php")?

I was looking into:

    <Files "/var/www/html/specific-file.php">
            ### SOMETHING
    </Files>

but it is not clear to me how to disable the protection.

Thanks!

A: 

what happens when you use following?

<Files "/var/www/html/specific-file.php">
        Order Deny, Allow
        Allow from all
        AuthType none
        Satisfy Any 
</Files>

or a try a combination of above.

No joy. Seems not to work. I also tried to use Location with the same directives, but that actually seemed toc completely disable security.
Michael T. Smith
hmm... did you try putting `Satisfy Any` before `Allow from all` as well? Try using `AuthType none` as well!
Still no joy. Just completely turns off Authorization at all.
Michael T. Smith