Author Topic

Björn X

Friday 28 October 2005 8:23:28 am

Comment6371

    <IfModule mod_php4.c>
        # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
        # instead of <IfModule mod_php4.c>.

        # some parts/addons might only run safe mode on 
        php_admin_flag safe_mode Off
        # security just in case
        php_admin_value register_globals    0
        # performance
        php_value magic_quotes_gpc  0
        # performance
        php_value magic_quotes_runtime  0
        #http://www.php.net/manual/en/ini.sect.language-options.php#ini.allow-call-time-pass-reference
        php_value allow_call_time_pass_reference 0
    </IfModule>

    <IfModule sapi_apache2.c>
        # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
        # instead of <IfModule mod_php4.c>.

        # some parts/addons might only run safe mode on 
        php_admin_flag safe_mode Off
        # security just in case
        php_admin_value register_globals    0
        # performance
        php_value magic_quotes_gpc  0
        # performance
        php_value magic_quotes_runtime  0
        #http://www.php.net/manual/en/ini.sect.language-options.php#ini.allow-call-time-pass-reference
        php_value allow_call_time_pass_reference 0
    </IfModule>

    <IfModule mod_rewrite.c>
        RewriteEngine On

        RewriteCond %{HTTP_HOST} ^webdav\..*
        RewriteRule ^(.*) /webdav.php [L]

        RewriteCond %{HTTP_HOST} ^soap\..*
        RewriteRule ^(.*) /soap.php [L]

        RewriteRule ^/var/cache/debug.html.* - [L]
        RewriteRule ^/var/[^/]+/cache/debug.html.* - [L]
        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule .* /index.php

    </IfModule>