| 
 
 
 | 
| 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: Log File Access |  |  
| Author |  |  
| wesma33 
 
 
 Joined: 17 Dec 2018
 Posts: 6
 Location: US, Charleston
 
 | 
|  Posted: Mon 14 Jan '19 20:42    Post subject: Log File Access |   |  
| 
 |  
| So I allow access to log directories within the below directories. The parent directory is named /server. Users are allowed to login via ldap with localhost:8383. I would like to not limit the view to Main directory and Misc directory. 
 Preferably I would not like them to see the directories at all and be able to login under one link and see only the log files.
 
 Any ideas or suggestions?
 
 Directory structure under /path/server
 Main
 DevDir1
 DevDir2
 Misc
 
 <Directory /path/servers/>
 Options +FollowSymlinks +Indexes
 Options Indexes
 AllowOverride all
 Allow from all
 AuthName "DevDir logs"
 AuthType Basic
 AuthBasicProvider ldap
 #AuthzLDAPAuthoritative off
 AuthLDAPURL ldaps://XXXX:XXX/ou=People.......
 Require ldap-user XXXXX
 </Directory>
 <VirtualHost *:1234>
 DocumentRoot /path/servers/
 IndexOptions FancyIndexing
 ServerName localhost.XXX
 </VirtualHost>
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Wed 27 Mar '19 16:36    Post subject: |   |  
| 
 |  
| You can require auth for location. Use Location or LocationMatch. IN the following example you can also get your LDAP stuff in instead of the simple require ip 
 
  	  | Code: |  	  | <LocationMatch ^/test.php> 
 Require ip 192.168.178.100
 
 </LocationMatch>
 | 
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |