logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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
Author
wesma33



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
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: 7288
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

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


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