Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. 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 am attempting to stop people from being able to browse directories on my server.

I have a fully functioning public facing LAMP on my pi but when you type in a dir name or my ip address you can see the DIR info.

Here is a live example http://anthonyrussell.info/postimages/

I was told to change this by editing the httpd.conf file but when I search for it, it doesn't exist.

enter image description here

What am I missing?

share|improve this question
up vote 8 down vote accepted

I never installed Apache on a Raspberry Pi, but on Debian (the operating system Raspbian is based on) the config file is apache2.conf (not httpd.conf) and it should be in /etc/apache2.

share|improve this answer

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.