File chwala-httpd.conf of Package chwala

# Kolab Groupware Server File Storage
#
# By default, this configuration file allows access to:
#
#   http://your.server.name/chwala
#
# 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 /chwala __CHWALA_ROOT__/public_html
</IfModule>

<Directory "__CHWALA_ROOT__/public_html/">
    AllowOverride None

    <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_php7.c>
        php_flag  session.auto_start        Off
        php_flag  display_errors            Off
        php_flag  log_errors                On
        php_flag  suhosin.session.encrypt   Off
        php_value error_log                 ../logs/errors.log
    </IfModule>
    
    <IfModule mod_php8.c>
        php_flag  session.auto_start        Off
        php_flag  display_errors            Off
        php_flag  log_errors                On
        php_flag  suhosin.session.encrypt   Off
        php_value error_log                 ../logs/errors.log
    </IfModule>
    
    <IfModule mod_rewrite.c>
        RewriteEngine on
        # NOTE: This needs to point to the base uri of your installation.
        RewriteBase /chwala/

        # Rewrite document URLs of the form api/document/:id to api/index.php?method=document&id=:id
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^api/document/(.*)$ api/index.php?method=document&id=$1 [L,QSA]
        RewriteRule ^api/wopi/(.*)$ api/index.php?wopi=1&method=$1 [L,QSA]
    </IfModule>
</Directory>

<Directory "__CHWALA_ROOT__/public_html/api">
    <IfModule mod_php7.c>
        php_flag  session.auto_start        Off
        php_flag  session.use_cookies       Off
        php_flag  display_errors            Off
        php_flag  log_errors                On
        php_value error_log                 ../../logs/errors.log
    </IfModule>
    
    <IfModule mod_php8.c>
        php_flag  session.auto_start        Off
        php_flag  session.use_cookies       Off
        php_flag  display_errors            Off
        php_flag  log_errors                On
        php_value error_log                 ../../logs/errors.log
    </IfModule>
</Directory>

<Directory "__CHWALA_ROOT__/cache">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Deny,Allow
        Deny from all
    </IfModule>
</Directory>

<Directory "__CHWALA_ROOT__/config">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Deny,Allow
        Deny from all
    </IfModule>
</Directory>

<Directory "__CHWALA_ROOT__/logs">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Deny,Allow
        Deny from all
    </IfModule>
</Directory>

<Directory "__CHWALA_ROOT__/temp">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Deny,Allow
        Deny from all
    </IfModule>
</Directory>
openSUSE Build Service is sponsored by