18

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?

DotNetRussell
  • 325
  • 2
  • 3
  • 11

2 Answers2

23

On Debian (the operating system Raspbian is based on) and Raspbian the config file is apache2.conf (not httpd.conf) and it should be in /etc/apache2.

waterproof
  • 203
  • 1
  • 9
JVarhol
  • 678
  • 1
  • 5
  • 17
-6

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.

Steve Robillard
  • 34,687
  • 17
  • 103
  • 109
buzzard51
  • 119
  • 1
  • 2
  • 4