Apache Lounge


About Forum Index Downloads Search Register Log in  RSS Apache Lounge  

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



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.

Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Log File Access

Joined: 17 Dec 2018
Posts: 6
Location: US, Charleston

PostPosted: Mon 14 Jan '19 20:42    Post subject: Log File Access Reply with quote

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

<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
<VirtualHost *:1234>
DocumentRoot /path/servers/
IndexOptions FancyIndexing
ServerName localhost.XXX
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6851
Location: Germany, Next to Hamburg

PostPosted: Wed 27 Mar '19 16:36    Post subject: Reply with quote

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

 <LocationMatch ^/test.php>
            Require ip
Back to top

Reply to topic   Topic: Log File Access View previous topic :: View next topic
Post new topic   Forum Index -> Apache