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 6821027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:29:46+00:00 2026-05-26T21:29:46+00:00

I am trying to allow a single location (a file which does not exist

  • 0

I am trying to allow a single location (a file which does not exist) to be accessed on my Apache 2.2.3 (Centos) server to be able to implement the paypal ipn listener.
The other files should stay password protected.

How can I allow a single location to be accessed without login?

The code bellow shows what I tried so far.

The location directive selects the correct location (I tested this by writing deny from all to it).

The issue I have now is that the server is still asking for a password for that location.

I tried already to put the location directive into the directory one but this leads to an syntax error (even if it would be allowed for file directives) but I can not use a file directive instead a location one, because the file does not physically exist.

<Directory /var/www/vhosts/somedomain.net/subdomains/p103.myproject/httpdocs/public>
Order Deny,Allow
 Options -Includes -ExecCGI
 SetEnv APPLICATION_ENV "development"
 AuthName "myproject"
 AuthType Basic
 AuthUserFile /var/www/vhosts/somedomain.net/subdomains/p103.myproject/.htpasswd
 AuthGroupFile /var/www/vhosts/somedomain.net/subdomains/p103.myproject/.htgroups
 Require group myproject
</Directory>
DocumentRoot /var/www/vhosts/somedomain.net/subdomains/p103.myproject/httpdocs/public
<Location "/ipn/sdsad8329ejslkdjasl">
 Order Deny,Allow
 Allow from all
 Satisfy Any
</Location>

Here a link to the documentation: http://httpd.apache.org/docs/2.2/

  • 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-05-26T21:29:46+00:00Added an answer on May 26, 2026 at 9:29 pm

    You can use a SetEnvIf to match against the Request_URI to set a variable, then use a combination of Satisfy any, Require group myproject and Allow.

    Try something like this:

    DocumentRoot /var/www/vhosts/somedomain.net/subdomains/p103.myproject/httpdocs/public
    
    # Here we check if the request is for something we don't need to authorize
    SetEnvIf Request_URI ^/ipn/sdsad8329ejslkdjasl NO_AUTH_NEEDED=1
    
    <Directory /var/www/vhosts/somedomain.net/subdomains/p103.myproject/httpdocs/public>
      Order Allow,Deny
      Options -Includes -ExecCGI
      SetEnv APPLICATION_ENV "development"
      AuthName "myproject"
      AuthType Basic
      AuthUserFile /var/www/vhosts/somedomain.net/subdomains/p103.myproject/.htpasswd
      AuthGroupFile /var/www/vhosts/somedomain.net/subdomains/p103.myproject/.htgroups
    
      # This makes it so one of the 2 is good enough
      Satisfy Any
      # We allow first, but only if the NO_AUTH_NEEDED is set
      Allow from env=NO_AUTH_NEEDED
      # Otherwise, require a login
      Require group myproject
    
    </Directory>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement a security on a single file to prevent either
I am trying to allow very primitive customization based on being able to pass
I'm trying to configure Apache to allow read only access and ask for user
Possible Duplicate: Workaround for basic syntax not being parsed I am trying to allow
I am trying to read a single file from a java.util.zip.ZipInputStream , and copy
I'm trying to implement a single-sign-on link from application written in JAVA, to another
I'm trying to deny all and allow only for a single IP. But, I
Background I have a simple socket server setup that I am trying to allow
I am trying to only allow one single character suing regex but it seems
I am trying to write a regular expression that doesn't allow single or double

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.