500 error - Internal Server Error Problems

Discussion in 'Installation/Configuration' started by dragon67, Feb 27, 2007.

  1. dragon67

    dragon67 New Member

    Hi,

    I have an Problem with my htaccess file

    This is the file:

    AddType image/jpeg .jpeg
    AddType image/jpeg .jpg
    AddType image/gif .gif
    ErrorDocument 404 /xboxgc/xboxrel.php
    Options -Indexes

    when i use it i get

    500 error - Internal Server Error Problems


    At the error log i can only find this

    [Tue Feb 27 13:29:34 2007] [alert] [client 192.168.0.1] /var/www/web3/web/xboxgc/.htaccess: Options not allowed here

    How can i fix this ???

    Thank You

    Reiner
     
  2. dragon67

    dragon67 New Member

    ok,

    i think i have found the problem, i need mod_autoindex

    but how can i install and activate the mod_autoindex

    found it here:

    http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html

    but not how to install and activate the mod_autoindex

    i hope someone can give me an tip

    Ciao

    Reiner
     
  3. till

    till Super Moderator

    The problem is not a missing mod_autoindex module. The problem is that it is not allowed to use "Options -Indexes" in a .htaccess file for security reasons.

    Either you put the content of the .htaccess file in the apache directives field of the website and delete the .htaccess file or you allow the setting of options and AddTypes by changing the AllowOverride directive for the web directories to e.g. "AllowOverride All" in your httpd configuration file.
     
  4. dragon67

    dragon67 New Member

    ???

    Sorry ich versuche es einfach mal in deutsch

    Ich benutze ISPConfig Appliance für VMWare

    und die httpd.conf ist leer

    Dort ist aber die apache2.conf von der aus auf die Vhosts_ispconfig.conf verwiesen wird

    mod_autoindex habe ich nicht gefunden und in welche der conf Dateien ich nun was eintragen muss weiss ich auch nicht


    Aber für Hilfe wäre ich dankbar

    Reiner
     
    Last edited: Feb 27, 2007
  5. edge

    edge HowtoForge Supporter

    ワシントン――イラク駐留米軍に撤退期限を設けることに、米国民の半数以上が賛成していることが、26日発表された米紙ワシントン・ポストとABCテレビの世論調査で明らかになった。この調査で期限設定への賛成が過半数に達したのは初めて

    Keep it in English please!
     
    Last edited: Feb 27, 2007
  6. dragon67

    dragon67 New Member

    ok,

    When i put the content of the .htaccess file in the Vhosts_ispconfig.conf and delete the .htaccess i get
    500 error - Internal Server Error Problems


    When i set "AllowOverride All" in the Vhosts_ispconfig.conf and use an .htaccess i get too

    500 error - Internal Server Error Problems
     
  7. martinfst

    martinfst HowtoForge Supporter

    You should not edit Vhosts_ispconfig.conf; it will change with every new website you make or every change you apply.

    Edit the /etc/apache2/apache2.conf file and somewhere at the end make it look like:
    Code:
    <snipped>........
    ###############ispconfig_log###############
    LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
    CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    
    <Directory /home/ispwww/*/web>
        Options +Includes -Indexes
        AllowOverride None
        [COLOR="Red"]AllowOverride Indexes AuthConfig Limit FileInfo Options[/COLOR]
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /home/ispwww/*/user/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
    .....
    <snipped rest of file>
    
     
  8. dragon67

    dragon67 New Member

  9. martinfst

    martinfst HowtoForge Supporter

    What's in the error log:
    Code:
    <ispc webdir>/webnn/log/error.log
    now? Did you remove the offending Options from your .htaccess file?
     
  10. till

    till Super Moderator

    Additionally, had you restarted your webserver after you changed the apache2.conf file?
     
  11. dragon67

    dragon67 New Member

    [alert] [client 192.168.0.1] /var/www/web3/web/xboxgc/.htaccess: Options not allowed here

    Yes i have removed the Option from the .htaccess
     
  12. dragon67

    dragon67 New Member

    Yes, but nothing changed
     
  13. martinfst

    martinfst HowtoForge Supporter

    If this is a recent entry in your log file after applying the modifications, you still have not edited / changed the settings correctly. In '/var/www/web3/web/xboxgc/.htaccess' there is still an Options directive and the Apache2.conf file is not modified at the correct place. There are three sections that really look alike, but they are different. Can you recheck? And as till said:
    Code:
    /etc/init.d/apache2 restart
    after making changes to this file.
     
  14. dragon67

    dragon67 New Member

    All tested but i still have the error 500

    Ok i have set AllowOveride All at all sections, but its still the same error

    my .htaccess

    AddType image/jpeg .jpeg
    AddType image/jpeg .jpg
    AddType image/gif .gif
    ErrorDocument 404 /xboxgc/xboxrel.php
    Options -Indexes
     
  15. falko

    falko Super Moderator

    Any errors in Apache's error log?
     

Share This Page