Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

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 11 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
    
Thanks so much! – Malachi Bazar May 2 at 13:26

On my Raspberry Pi (Debian), with Apache installed, there is no httpd.conf, there is ports.conf. And it is located in /etc/apache2/ports.conf.

share|improve this answer
2  
So you typed it twice because it was flagged as too short... instead of simply writing two or three explanatory lines (just as you did now) to make it an answer that everyone could understand? – Ghanima Apr 24 at 19:16

Your Answer

 
discard

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.