(01-25-2010 11:32 PM)kilburn Wrote:  Edit /etc/apache2/ispcp/domain.tld.conf, and add:
Quote:    <Directory /var/www/virtual/domain.tld/cgi-bin>
        AllowOverride AuthConfig FileInfo
    </Directory>
Done.
Thank you for your quick reply!
There is no RewriteEngine error after I've added the suggested lines but I still get an internal server error (500) and I have a different error in suexec.log:
Code:
[2010-01-25 16:58:41]: uid: (2005/vu2005) gid: (2005/vu2005) cmd: index.cgi
[2010-01-25 16:58:41]: target uid/gid (2005/2005) mismatch with directory (2005/2005) or program (0/0)
 
The content of the .htaccess in htdocs folder is:
Code:
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]
RewriteRule    ^$                        /cgi-bin/index.cgi [L]
RewriteRule    ([0-9A-Za-z]{12})-del-([0-9A-Za-z]+)/.+$        /cgi-bin/index.cgi?del=$1-$2 [L]
RewriteCond    %{REQUEST_FILENAME} !-f
#RewriteRule    ^([0-9A-Za-z\-_]*)/?([0-9A-Za-z]{12})(\.html?|$)$        /cgi-bin/index.cgi?op=download1&usr_login=$1&id=$2 [L]
#RewriteRule    ^([0-9A-Za-z\-_]*)/?([0-9A-Za-z]{12})/([^\/]*)(\.html?|$)$    /cgi-bin/index.cgi?op=download1&usr_login=$1&id=$2&fname=$3 [L]
RewriteRule    ^([0-9A-Za-z\-_]*)/?([0-9A-Za-z]{12})(/[^\/]*|$)(\.html?|$)$    /cgi-bin/index.cgi?op=download1&usr_login=$1&id=$2&fname=$3 [L]
RewriteRule    ^checkfiles\.html$                    /cgi-bin/index.cgi?op=checkfiles [L]
RewriteRule    ^contact\.html$                        /cgi-bin/index.cgi?op=contact [L]
RewriteRule    ^premium\.html$                        /cgi-bin/index.cgi?op=payments [L]
RewriteRule    ^login\.html$                        /cgi-bin/index.cgi?op=login [L]
RewriteRule    ^catalogue(.*)\.html$                    /cgi-bin/index.cgi?op=catalogue&date=$1 [L]
RewriteRule    ^news(\d*)\.html$                    /cgi-bin/index.cgi?op=news&page=$1 [L]
RewriteRule    ^n(\d+)-.*\.html$                    /cgi-bin/index.cgi?op=news_details&news_id=$1 [L]
RewriteCond    %{REQUEST_FILENAME} !-f
RewriteCond    %{REQUEST_FILENAME} !-d
RewriteRule    ^([0-9A-Za-z\-_]{4,64})(/[^\/]*/?|$)$        /cgi-bin/index.cgi?op=user_public&usr_login=$1&fld=$2 [L,NC]
RewriteCond    %{REQUEST_FILENAME} !-f
RewriteRule    ^([a-z0-9\-\_]+).html(.*)            /cgi-bin/index.cgi?op=page&tmpl=$1$2 [L]
ErrorDocument 404 /404.html
#AddDefaultCharset UTF-8
#AddType 'text/xml; charset=UTF-8' rss
#AddCharset UTF-8 .rss
 
and redirects all traffic to the cgi-bin folder where I have a different .htaccess file:
Code:
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]
#LimitRequestBody 10000000000000
<IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    SetEnvIfNoCase Content-Type "^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
</IfModule>
<IfModule mod_gzip.c>
    mod_gzip_on No
</IfModule>
<IfModule mod_deflate.c>
    SetEnvIfNoCase Request_URI testenv.cgi no-gzip dont-vary
    SetEnvIfNoCase Request_URI upload_status.cgi no-gzip dont-vary
    SetEnvIfNoCase Request_URI upload.cgi no-gzip dont-vary
</IfModule>
 
Thank you,
Nick