Globally add /horde ?

Discussion in 'Installation/Configuration' started by sjau, Mar 19, 2012.

  1. sjau

    sjau Local Meanie

    Meanwhile I like the horde webmail suite very much. It provides webmail, calendar, todo, contact and can sync via SyncML, ActiveSync and supports caldav (or webdav... never really sure).

    Anyway, I'd like to make horde available on all domains at /horde.

    So I looked how phpmyadmin and squirrelmail are being handled. If found that those are stored in /etc/apache2/sites-available/ispconfig.conf

    <Directory /usr/share/phpMyAdmin>
            Order allow,deny
            Allow from all
    <Directory /usr/share/squirrelmail>
            Order allow,deny
            Allow from all
    Because of that, I thought I should add the horde info also there. So I added:

    Alias /Microsoft-Server-ActiveSync /var/www/horde/rpc.php
    Alias /horde /var/www/horde
    <Directory /var/www/horde>
            Options +FollowSymLinks
            AllowOverride None
            order allow,deny
            allow from all
            php_value include_path ".:/usr/share/php"
            php_value open_basedir "none"
            php_value upload_tmp_dir "/var/www/horde/phptmp/"
    After I restarted the webserver and used one of the domain I added, I got this error:

    [Sun Mar 18 17:24:21 2012] [error] [client] SoftException in Application.cpp:221: File "/var/www/horde/index.php" is not in document root of Vhost "/var/www/clients/client1/web1/web"

    However when I open it using the ip: http://ip_address/horde or it works.
  2. till

    till Super Moderator

    PLease add:

    AddType application/x-httpd-php .php

    right after the line

    allow from all

    This will switch the php mode to mod_php for the horde directory as the current ph mode of the site would prevent access to files outside of the web dir for security reasons.
  3. sjau

    sjau Local Meanie

    I'll try tonight.

    Btw, should I add the horde stuff to the ipsconfig file or to apache2.conf?
  4. till

    till Super Moderator

    I would create a new file e.g. called horde.conf in the apache conf.d folder. apache will include all config files in conf.d automatically.
  5. sjau

    sjau Local Meanie

    that works perfectly.
  6. alexander.bluemm

    alexander.bluemm New Member

    Hi Till,

    this works perfect.:)

Share This Page