index.html make eror

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

  1. planet_fox

    planet_fox Member HowtoForge Supporter

    Hi

    I have the problem all site index.html make a error.
    Fehler 500 - Interner Server-Fehler! or Fehler 403 - Verboten!

    The rights is corect, it makes on any html sites. I have no change make in
    apache.conf ot http.conf . I have apache2 . When I create a new sites with ispconfig it is the same problem.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Are there any additional errors in the error log?
     
  3. planet_fox

    planet_fox Member HowtoForge Supporter

    Nothing under /var/log/apache2/error.log

    In Apache conf

    Code:
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.php4 index.php5  index.pl index.xhtml
     
  4. martinfst

    martinfst Member Moderator

    This is the wrong error log to look at in this case. Please go to the log directory of the website and loog for a file error.log. So something like
    Code:
    /var/www/web1/log/error.log
     
  5. planet_fox

    planet_fox Member HowtoForge Supporter

    oh I have this found

    Directory index forbidden by rule:

    ok i have the problem is only the index.html gives a error whenn I type

    www.test.de and i can see the site when I type www.test.de/index.html
     
    Last edited: Feb 22, 2007
  6. falko

    falko Super Moderator Howtoforge Staff

    Can you post the vhost configuration of that web site?
     
  7. planet_fox

    planet_fox Member HowtoForge Supporter

    Code:
    <VirtualHost 38.192.9.20:80>
    SuexecUserGroup web19_ftp web19
    ServerName www.web.de:80
    ServerAdmin [email protected]
    DocumentRoot /home/www/web19/web
    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
    ScriptAlias  /cgi-bin/ /home/times/web19/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /home/www/web19/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    suPHP_Engine on
    suPHP_UserGroup web19_ftp web19
    AddHandler x-httpd-php .php .php3 .php4 .php5
    suPHP_AddHandler x-httpd-php
    Alias /error/ "/home/www/web19/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /home/www/web19/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web19/user/$1/web/$3
    RewriteEngine on
    </VirtualHost>
    
     
  8. heymrdj

    heymrdj Member

    I have this same issue. Unless a directory has an index.html to access, the browser give me a FORBIDDEN! message. So to simply make a folder with some files for download, rather than getting an index page jsut showing the files in there, it says FORBIDDEN! So basically I have to build an index.html file with the directories of the files just to access them.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont think ist the same problem. planet_fox gets a error when he has a index.html file and not when he dont have this file.

    But back to your problem, to get a directory listing, you must set the option "+indexes" for this directory in the apache configuration.
     
  10. heymrdj

    heymrdj Member

    Sorry about that. I misread his problem.

    But thanks for the fix, it worked perfectly :D.

    *gives a till a cookie*
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. Is there an .htaccess file in /home/www/web19/web?
     
  12. planet_fox

    planet_fox Member HowtoForge Supporter

    No, the problem is off all sites is a index.html site in . with index.php is no problems
     
  13. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /home/www/web19/web
    ?
     
  14. planet_fox

    planet_fox Member HowtoForge Supporter

    Code:
    drwxrwxrwx   7 web19_ftp web19 4096 Feb 25 12:36 .
    drwxr-xr-x  14 web19_ftp web19 4096 Feb  4 17:24 ..
    drwxr-xr-x   9 web19_ftp web19 4096 Feb 25 12:45 content
    drwxrwxrwx   2 web19_ftp web19 4096 Oct  7 12:14 error
    drwxrwxrwx   2 web19_ftp web19 4096 Oct  7 23:18 files
    -rwxrwxrwx   1 web19_ftp web19    4 Feb 22 15:02 index.html
    -rwxrwxrwx   1 web19_ftp web19   10 Feb 23 14:25 info.php
    drwxrwxr-x   8 web19_ftp web19 4096 Dec 26 02:50 shop
    drwxr-xr-x   2 web19_ftp web19 4096 Feb  2 04:01 stats
    
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check that mod_autoindex is enabled and lodaed in your apache configuration.
     
  16. falko

    falko Super Moderator Howtoforge Staff

    I don't see an index.php in /home/www/web19/web... :confused:
     
  17. planet_fox

    planet_fox Member HowtoForge Supporter

    Ok under

    /etc/apache2/mods-enable and the mods-avalable is no mod_autoindex and I have see in a other apache configuration at home there is a mod_autoindex
    in the apache.conf . I do copy the lines there is not in my apache.conf on server and i hope it works than.
     
  18. planet_fox

    planet_fox Member HowtoForge Supporter

    I have yesterday include in apache.conf the autoindex mod and restart the server . No change the probleme is the same. Only the index.html says Error 404 and when it is a index,php is no problem.
     
  19. falko

    falko Super Moderator Howtoforge Staff

    Can you post the URL of the /home/www/web19/web web site so that I can test with index.html and index.php? Make sure there is an index.html and index.php in /home/www/web19/web.
     
  20. falko

    falko Super Moderator Howtoforge Staff

    I didn't find anything unusual in your PM... :confused:
    Are there any errors in Apache's error log?
     

Share This Page