[imp] hiding /horde in document root

Barry Flanagan barryf-imp@digiserve.ie
Thu, 10 Jan 2002 17:05:22 +0000


On Thursday 10 January 2002 16:43, you wrote:
> First off, I apologize for not sending this to the general horde list.
>
> That said, is there anyway to set up the distribution to hide the /horde
> directory in the apache DocumentRoot? I tried just specifying the /horde
> dir, but when I attempt to login, it fails, looking for
> /horde/imp/login.php (it's actually looking for
> htdocs/horde/horde/imp/login.php, I think). I created a symlink in /horde
> back out to itself;
>
> ie ln -s ../horde horde
> That worked, but it seems like an ugly hack. Is there a better way to do
> it?

I have imp set up as document root on webmail.edo.ie using the following:

I have horde in  /web/apache/httpd/virtual/webmail.edo.ie/html
..with imp, etc. installed below it as usual.

In Apache httpd.conf for this vhost I have:

DocumentRoot /web/apache/httpd/virtual/webmail.edo.ie/html/imp 
(i.e. pointing to the imp subdir)

Then I have aliases like so:

Alias /horde/ "/web/apache/httpd/virtual/webmail.edo.ie/html/"
(this points to hordes top level)

In registry.php I have the following for horde's root:

    'webroot' => '/horde',

and for IMP:

   'webroot' => '',


So, imp is at the top level of the web server, but horde can always find it's 
own files. Because imp is still physically underneath the horde directory, 
any of the relative includes still work.

Work for me, YMMV.
-- 

-Barry Flanagan


>From haribeau@gmx.de Date: 10 Jan 2002 18:28:54 -0000
Return-Path: <haribeau@gmx.de>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 91565 invoked from network); 10 Jan 2002 18:28:57 -0000
Received: from name.linuxlupe.de (HELO linuxlupe.de) (213.95.13.2)
  by clark.horde.org with SMTP; 10 Jan 2002 18:28:57 -0000
Received: (qmail 51354 invoked by uid 0); 10 Jan 2002 18:28:54 -0000
Date: 10 Jan 2002 18:28:54 -0000
Message-ID: <20020110182854.51353.qmail@linuxlupe.de>
From: "Clemens Hermann" <haribeau@gmx.de>
To: imp@lists.horde.org
X-Mailer: oMail 0.94 - http://webmail.omnis.ch
X-IPAddress: 62.225.210.126
X-Sender: haribeau@linuxlupe.de
Subject: disable edit of from-adresse

Hi,

is there a way to disable the option to edit the from-adresse in the 
properties dialog?
The reason is that I want to evaluate the smtp-logs. If everyone can set 
the from-adresse I can not know which user caused how much mail-traffic.

tia

/ch