Our Blog

News, thoughts & useful links

Contact: Skype , email or call
+44 (0) 131 556 6818

Apache test page instead of directory listing in Linux

April 6th, 2008 by Anton

Are you trying to set up your hosting so that if you type a URL ending with a directory name it lists all the files in that directory (in the browser), but instead of the directory listing you get an Apache test page ?

Usually, directory listing is enabled by default (at least in CentOS 4.x) in a freshly installed apache (or httpd in CentOS case). But here are the checkpoints you need to go through to make sure everything is set up correctly:

  1. Check that you have “Options +Indexes" httpd.conf inside the appropriate <Directory>...</Directory> definition.
  2. Make sure that you have removed the welcome.conf file in /etc/httpd/conf.d.This file will be displayed instead of the directory listing if you don’t remove/rename it.


Comments are closed.