weird apache config problem

Discussion in 'OT Technology' started by D1G1T4L, Aug 20, 2004.

  1. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    i have this
    Code:
    DirectoryIndex index.html index.html.var index.htm
    
    but if i have index.php and index.html page in a directory
    it chooses to display the index.php over index.html

    how do i fix that?
     
  2. TMReX

    TMReX Spoooooon!

    Joined:
    May 23, 2003
    Messages:
    50
    Likes Received:
    0
    Location:
    you better check under the sea! or Dallas
    Sounds like you have a separate configuration file for your PHP. Check in conf.d for a php.conf which adds an additional entry for index.php as DirectoryIndex. Chances are this file is being loaded by your primary httpd.conf file before the DirectoryIndex you listed in your post.
     
  3. Ximian

    Ximian New Member

    Joined:
    Mar 20, 2004
    Messages:
    1,860
    Likes Received:
    0
    Location:
    DCA
    Do you have an .htaccess in that directory that defines the DirectoryIndex or perhaps this is a user directory? (/~user/)
     
  4. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    :bowdown:
    thank you
     

Share This Page