Apache test page instead of directory listing in Linux

Apache test page instead of directory listing in Linux

Apache test page instead of directory listing in Linux 1920 1091 Border Crossing UX

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.
Back to top