[imp] [horde] URL problem

Lucien GENTIS lucien.gentis at lorraine.iufm.fr
Fri Mar 30 07:16:20 UTC 2007


Lucien GENTIS a écrit :
> edwardspl at ita.org.mo a écrit :
>   
>> Lucien GENTIS wrote:
>>     
>>> edwardspl at ita.org.mo <mailto:edwardspl at ita.org.mo> a 嶰rit :
>>>   
>>>       
>>>> Dhawal Doshy wrote:
>>>>
>>>>   
>>>>     
>>>>         
>>>>> edwardspl at ita.org.mo <mailto:edwardspl at ita.org.mo> wrote:
>>>>>  
>>>>>
>>>>>     
>>>>>       
>>>>>           
>>>>>> Hello,
>>>>>>
>>>>>> Just tried the following setting :
>>>>>>
>>>>>> Alias /horde/ /home/itawm/html/horde/
>>>>>> Alias /imp/ /home/itawm/html/horde/imp/
>>>>>> DocumentRoot /home/itawm/html/horde/imp
>>>>>>
>>>>>> BUT fail...
>>>>>>    
>>>>>>
>>>>>>       
>>>>>>         
>>>>>>             
>>>>> See horde/config/registry.php and change the webroot for horde from 
>>>>> '/horde' to '/' You can change the webroot for other applications as 
>>>>> well if required (however it WILL complicate things till you manage to 
>>>>> get everything working)
>>>>>
>>>>>  
>>>>>
>>>>>     
>>>>>       
>>>>>           
>>>>>> BTW, the horde and imp is the least stable version !
>>>>>>    
>>>>>>
>>>>>>       
>>>>>>         
>>>>>>             
>>>>> you mean latest not least.. right? ;-)
>>>>>
>>>>>  
>>>>>
>>>>>     
>>>>>       
>>>>>           
>>>> Hello,
>>>>
>>>> For our config of /horde/config/registry :
>>>>
>>>> $this->applications['horde'] = array(
>>>> 'fileroot' => dirname(__FILE__) . '/..',
>>>> 'webroot' => _detect_webroot(),
>>>> 'initial_page' => 'login.php',
>>>> 'name' => _("Horde"),
>>>> 'status' => 'active',
>>>> 'templates' => dirname(__FILE__) . '/../templates',
>>>> 'provides' => 'horde'
>>>> );
>>>>
>>>> $this->applications['imp'] = array(
>>>> 'fileroot' => dirname(__FILE__) . '/../imp',
>>>> 'webroot' => $this->applications['horde']['webroot'] . '/imp',
>>>> 'name' => _("Mail"),
>>>> 'status' => 'active',
>>>> 'provides' => 'mail',
>>>> );
>>>>
>>>> For our config of web server :
>>>>
>>>> <VirtualHost *:80>
>>>>
>>>> DocumentRoot /home/itawm/html/horde/imp
>>>> Alias /horde/ /home/itawm/html/horde/
>>>> Alias /imp/ /home/itawm/html/horde/imp/
>>>> ServerAdmin ...
>>>> ServerName ...
>>>> ErrorLog ...
>>>> CustomLog ...
>>>> </VirtualHost>
>>>>
>>>> <Directory "/home/itawm/html">
>>>> Options FollowSymLinks
>>>> AllowOverride None
>>>> Order deny,allow
>>>> allow from all
>>>> </Directory>
>>>>
>>>> So, what problem about it ?
>>>>
>>>> Edward.
>>>>   
>>>>     
>>>>         
>>> If you want to display horde login page directly with URL 
>>> http://webmail.mydomain.com/
>>>
>>> you can put a file called say some-index.php in your DocumentRoot 
>>> containing:
>>>
>>> <?php
>>> header("Location: http://webmail.mydomain.com/horde/");
>>> exit();
>>> ?>
>>>
>>> (where you replace horde by your horde installation directory)
>>>
>>> and add in your VirtualHost DirectoryIndex at first position some-index.php.
>>>
>>> So, when you enter http://webmail.mydomain.com, some-index.php
>>> is found in DirectoryIndex of your VirtualHost and redirects to
>>> http://webmail.mydomain.com/horde/ where index.php is found
>>> and display login page.
>>>
>>> Lucien
>>>
>>>   
>>>       
>> Hello,
>>
>> Do you means :
>>
>> For our config of /horde/config/registry :
>> $this->applications['imp'] = array(
>> 'fileroot' => dirname(__FILE__) . '/../imp',
>> 'webroot' => $this->applications['horde']['webroot'] . '/imp',
>> 'name' => _("Mail"),
>> 'status' => 'active',
>> 'provides' => 'mail',
>> );
>> For our config of web server :
>> <VirtualHost *:80>
>>
>> DocumentRoot /home/itawm/html
>>
>> ServerAdmin ...
>> ServerName ...
>> ErrorLog ...
>> CustomLog ...
>> </VirtualHost>
>>
>> <Directory "/home/itawm/html">
>> Options FollowSymLinks
>> AllowOverride None
>> Order deny,allow
>> allow from all
>> </Directory>
>>
>> Then create /home/itawm/html/index.php :
>>
>> <?php
>> header("Location: _http://webmail.mydomain.com/horde/imp/index.php_");
>> exit();
>> ?>
>>
>> So, is it right ?
>>
>> Edward.
>>   
>>     
> In /home/itawm/html/index.php :
>
> <?php
> header("Location: __http://webmail.mydomain.com/horde/__
> exit();
> ?>
>
> because there's already another index.php in __http://webmail.mydomain.com/horde/
>
> which displays login page.
>
> __ 
>
>
>
>   
Apologize for weird display, I resend preceding message.

In /home/itawm/html/index.php :

<?php
header("Location: http://webmail.mydomain.com/horde/");
exit();
?>

because there's already another index.php in http://webmail.mydomain.com/horde/

which displays login page.



-- 
Lucien GENTIS
IUFM de Lorraine
Centre de Ressources Informatiques
5, Rue Paul Richard
C.O. 3 - MAXEVILLE
54528 LAXOU-CEDEX

Tél. 03 83 17 68 41
Email : lucien.gentis at lorraine.iufm.fr



More information about the imp mailing list