Apache file / directory access

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

Apache file / directory access

Postby graeme1972 » 01. June 2007 12:48


I know this should be in German but if anybody is kind enough to respond it would be very much appreciated :)

Please tell me how to go about restricting web user access to only html and php files?

For example users should not be allowed to access directories or the database password file, heaven forbid :-O
So you know the files that I wish to excl. from the users view have an extension of .inc or .lib for example.

Thanks for a great forum
Posts: 8
Joined: 31. May 2007 21:09


Postby graeme1972 » 01. June 2007 16:18

Hi all

Here is the solution:

Hope this helps

In ./etc/http.conf change to this:


<Directory />
#Options FollowSymLinks
#AllowOverride None
Order deny,allow
Deny from all


Then under the '<Directory "/opt/lampp/htdocs">' change to this:

#Options Indexes FollowSymLinks ExecCGI Includes
Options -Indexes

Include whichever files you wish to excl. In my case I added the "|.inc" bit.

<FilesMatch "^\.ht|.inc">
Order allow,deny
Deny from all
Posts: 8
Joined: 31. May 2007 21:09

Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 2 guests