apache php access rights configuration

Posted by AndreasT on Super User See other posts from Super User or by AndreasT
Published on 2010-05-18T16:16:58Z Indexed on 2010/05/18 16:21 UTC
Read the original article Hit count: 308

Filed under:
|

Hi, I am a complete apache and co newb. Currently it serves only the default page. On the default page, the user can not list the directory or files. When I create a directory, say

/var/www/foobar

and place files in it, the user can by doing:

 www.mydomain.org/foobar

see the contents of the directory. I run pretty much the default configuration. on Directory "/", I have FollowSymlinks and AllowOverride(none) on what DocumentRoot points to I have Indexes FollowSymlinks MultiViews and "allow from all" set.

My questions are:

  1. Can I stop people from listing subdirectories?
  2. Can people, if I do not change the configuration, in some way read the php files in there? (I mean not the rendered page, I mean the .php page source.)

Pointers to good resources about this would also be nice.

Thx in Advance.

© Super User or respective owner

Related posts about apache

Related posts about permissions