| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Disable auth subfolder |  |  
| Author |  |  
| Taps 
 
 
 Joined: 11 Mar 2024
 Posts: 1
 
 
 | 
|  Posted: Mon 11 Mar '24 9:02    Post subject: Disable auth subfolder |   |  
| 
 |  
| Hello, I use https://github.com/TQsoft-GmbH/mod_authn_ntlm. I need disable auth to subfolder (an external application writes to the folder via a post request) A try this, but return 401. Can I help me? Thank you
 
 
  	  | Code: |  	  | RequestHeader unset X_ISRW_PROXY_AUTH_USER
 <Location /app >
 #AllowOverride None
 AuthName "Private location"
 AuthType SSPI
 NTLMAuth On
 NTLMUsernameCase lower
 NTLMOmitDomain On
 NTLMAuthoritative Off
 <RequireAll>
 <RequireAny>
 Require valid-user
 #require sspi-user EMEA\group_name
 </RequireAny>
 <RequireNone>
 Require user "ANONYMOUS LOGON"
 Require user "NT-AUTORIT\ANONYMOUS-ANMELDUNG"
 </RequireNone>
 </RequireAll>
 # use this to add the authenticated username to you header
 # so any backend system can fetch the current user
 # rewrite_module needs to be loaded then
 # while X_ISRW_PROXY_AUTH_USER is your header name
 RequestHeader set X_ISRW_PROXY_AUTH_USER expr=%{REMOTE_USER}
 </Location>
 
 <Location /app/withouth_auth >
 Require all granted
 Satisfy any
 Allow from All
 </Location>
 
 | 
 |  |  
| Back to top |  |  
| tangent Moderator
 
 
 Joined: 16 Aug 2020
 Posts: 397
 Location: UK
 
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |