Results 1 to 6 of 6

Thread: Apache2 DirectoryIndex Override?

Threaded View

  1. #1

    Exclamation Apache2 DirectoryIndex Override?

    Hello,
    We use SLES 10 and 11 at my workplace to provide web services using PHP apps. Unfortunately, I noticed that every time apache gets patched, it insists on replacing /srv/www/htdocs/index.html, which breaks the server by throwing "It Works!" at clients. I created a /etc/apache2/httpd.conf.local file and added it to /etc/sysconfig/apache2 as an INCLUDE, which has "DirectoryIndex index.php index.html index.htm" That directive is listed in order of preference, but the apache httpd still prefers the stupid index.htm. I know there's a DirectoryIndex declaration in /etc/apache2/httpd.conf, but the instructions in that file say not to modify the file directly!

    In addition, I see that the PHP file contains multiple DirectoryIndex declarations, each on their own line, which suggests the directive is additive. Help! How can I avoid the blasted "It Works!" index.html taking over every patch release?

    Edit: Grammar
    Last edited by Dalrain; 06-Mar-2012 at 15:55.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •