File hosted-kolab.conf of Package kolab-webadmin

# Kolab Groupware Server Web Administration Panel
#
# By default, this configuration file allows access to:
#
#   http://yourserver/hosted-kolab
#
# You should configure your webserver to allow the client over SSL only.
#
# See the Kolab Groupware Installation Manual for more information.
#

<IfModule mod_alias.c>
    Alias /hosted-kolab __WEBADMINPATH__/hosted/
</IfModule>

AddDefaultCharset   UTF-8

<Directory "__WEBADMINPATH__/hosted">
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        #Allow from 127.0.0.1
        Allow from All
    </IfModule>
    
    Options +FollowSymLinks
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
        # NOTE: This needs to point to the base uri of your installation.
        RewriteBase /hosted-kolab/

        # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} !=/favicon.ico
        RewriteRule ^api/(.*)\.(.*)$ api/index.php?service=$1&method=$2 [L,QSA]
    </IfModule>

    <IfModule mod_php7.c>
        php_value error_reporting      6135
    </IfModule>

    <IfModule mod_php8.c>
        php_value error_reporting      6135
    </IfModule>

    DirectoryIndex index.php
</Directory>

<Directory "__WEBADMINPATH__/hosted/api">
    <IfModule mod_php7.c>
        php_flag  session.auto_start   Off
        php_flag  session.use_cookies  Off
    </IfModule>
    <IfModule mod_php8.c>
        php_flag  session.auto_start   Off
        php_flag  session.use_cookies  Off
    </IfModule>
</Directory>
openSUSE Build Service is sponsored by