File kivitendo-erp.http of Package kivitendo-erp

# Access via CGI
AddHandler cgi-script .pl

AliasMatch ^/@name@/[^/]+\.pl @kivitendo_docroot@/dispatcher.pl
Alias      "/@name@"         "@kivitendo_docroot@/"

# Access via FCGI
<IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi .fpl

    AliasMatch ^/@name@-fcgid/[^/]+\.pl @kivitendo_docroot@/dispatcher.fpl
    Alias      "/@name@-fcgid/"        "@kivitendo_docroot@/"
</IfModule>

<Directory "@kivitendo_docroot@">
	AllowOverride None
	Options ExecCGI Includes FollowSymlinks

    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all granted
        </IfModule>
        <IfModule mod_access_compat.c>
            Order allow,deny
            Allow from all
        </IfModule>
    </IfVersion>

</Directory>

# deny access to following DIR's
<Directory "@kivitendo_docroot@/SL">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/bin/mozilla">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/config">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/locale">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/modules/override/CGI">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/scripts">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/t">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/templates">

    <IfVersion < 2.4>
        Order allow,deny
        Deny from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all denied
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Deny from all
        </IfModule>
    </IfVersion>

</Directory>

<Directory "@kivitendo_docroot@/users">

    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>

    <IfVersion >= 2.4>
        <IfModule !mod_access_compat.c>
            Require all granted
        </IfModule>
        <IfModule mod_access_compat.c>
            Order deny,allow
            Allow from all
        </IfModule>
    </IfVersion>

</Directory>

openSUSE Build Service is sponsored by