index.html make eror

Discussion in 'Installation/Configuration' started by planet_fox, Feb 10, 2007.

  1. planet_fox

    planet_fox Member HowtoForge Supporter

    Ok I have on this night Apache2 new install and suphp . All ok and than I have restart the same error :(. I dp stop ispconfig and remove in apache.conf the ispconfig vhosts. I restart the apache . I see the Apache is on my server running . I think apache is korect and only when I do the ispconfig vhost to apache.conf became the error. I search Google and hundred foren and I find problem from a other user with my error

    Code:
    directory index forbidden by rule
    and a post says make this in your vhost

    Code:
    DirectoryIndex index.php index.phtml index.php3 index.php4 index.html index.htm default.htm Index.htm 
    ok I do this in my apache.conf

    Code:
    <Directory /home/times/*/web>
          Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
      [COLOR="Red"]  DirectoryIndex index.php index.phtml index.php3 index.php4 index.html index.htm default.htm Index.htm[/COLOR]
     <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    and I have restart the server amd the html sites runs and the php sites .
    I hope you can me give a answhere why i must set this in apche.conf
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the exact DirectoryIndex from the vhost the problem occurs from the Vhost_ispconfig.conf file.
     
  3. planet_fox

    planet_fox Member HowtoForge Supporter

    Code:
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    this is in all Vhosts in /etc/apache2/vhosts/Vhostsconfig.conf

    mean you that ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, and it contains the relevant entries, thats really strange...

    What is the exact name of your index page. Plesae post the name in with the eaxt upper and lower letters then it appears on your server.
     
  5. planet_fox

    planet_fox Member HowtoForge Supporter

    Code:
     index.html
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I really have no idea? What you edited and what solved your problem contains the both the index.html in the DirectoryIndex directive, just added in two different parts of the apache configuration, And declaring this directive in a vhost is definately valid and shoild even override the directive that you defined :confused:
     
  7. planet_fox

    planet_fox Member HowtoForge Supporter

    I have this add in apache2.conf

    Code:
    DirectoryIndex index.php index.phtml index.php3 index.php4 index.html index.htm default.htm Index.htm
    and the html error Problem was finish

    Code:
    <Directory /home/times/*/web>
          Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        DirectoryIndex index.php index.phtml index.php3 index.php4 index.html index$
     <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
     

Share This Page