Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i would like to hide ONLY the dirs in users root dir. and i want it to be genereic (i have mysql users)

i have :

<Directory />
   HideFiles ((lib|var|etc|tmp).*)$
     IgnoreHidden on

how to make it work only for the users root(home) dir ??

so for example it will work for


but not for

share|improve this question
i think it might be possible using DenyFilter but i have no idea how – n00b32 Feb 5 '11 at 12:49
up vote 0 down vote accepted

okay i think it is impossible using that command so i just created a group www-hidden and

HideGroup www-hidden


but if someone knows a way to do it without this workaround please post

share|improve this answer

Unfortunately this is not yet supported; there's a long standing feature request for support for this sort of thing. The fact that you've asked about this feature here on ServerFault means I should see how hard it would be to implement this feature.

share|improve this answer
Hi, did you forget a link? Your text references a post on Stack Overflow, but there doesn't seem to be a link to one. – Michael Hampton Jan 6 at 1:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.