opensuse10.3/perfect server/ispconfig + .htaccess

Discussion in 'Installation/Configuration' started by Micha68, Dec 30, 2007.

  1. Micha68

    Micha68 New Member


    I had to install my root-server from scratch with OpenSuse10.3
    I use the perfect-Server-Setup and added ISPConfig.
    All works perfect except my .htaccess files. :confused:

    I use this .htaccess inside my picture-folder to output an error-picture, when a requested picture is not present:

      ErrorDocument 404 
    In my old Setup this works fine, with the new installation, not.
    Now, i cannot load ANY picture of that folder, i get always error 500.

    My phpinfo() shows at apache, rewrite is loaded.

    This is a part of my httpd.conf:

    <Directory /srv/www/*/web>
        Options +FollowSymLinks +Includes -Indexes
        AllowOverride All
        #AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
    Websites are stored in directory web.

    This is a part of my vhosts_ispconfig.conf:

    RewriteEngine On
    #RewriteOptions Inherit
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web2/web
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.jsp Default.htm default.htm
    ErrorLog /srv/www/web2/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    php_admin_flag safe_mode Off
    Alias /error/ "/srv/www/web2/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 ^/~([^/]+)(/(.*))? /srv/www/web2/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web2/user/$1/web/$3
    I edited servername and ip here, in the original file, its the right adresses.

    Any idea!?


    My mistake, got en error in the htaccess-File.
    Just wondering, why the File worked in the old installation and now not.
    ErrorDocument 404

    <FilesMatch ".(gif|jpg)">
    ErrorDocument 404

    First is wrong, i know, but why does it work before !?

    Last edited: Dec 30, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    Maybe you had different Apache versions on both systems?

Share This Page