[horde] Horde 5 Apache directives

Steven Swarts steven at swartsit.com
Tue Jun 11 15:59:27 UTC 2013


Still no joy guys...

On 9/06/2013 10:06 AM, Luis Felipe Marzagao wrote:
> Em 08-06-2013 14:45, Steven Swarts escreveu:
>>> Em 07-06-2013 15:13, Steven Swarts escreveu:
>>>> G?day guys,
>>>>   Could someone please share with me their horde.conf file (or 
>>>> whatever you call it) used by Apache??
>>>> I need to have URL rewriting, for Nag.
>>> Hello:
>>> <Directory /var/www/horde>
>>>                 Options Indexes FollowSymLinks MultiViews
>>>                  #AllowOverride None
>>>                  # This is needed for horde/nag to work:
>>>                  AllowOverride FileInfo Limit
>>>                  Order allow,deny
>>>                  allow from all
>>> </Directory>
>>
>> Tried that but I get a 500 error when trying to log in.
>>
>>
>> This is what a tail -f /var/www/swartsit.com/log/error.log shows:
>>
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.134] 
>> SoftException in Application.cpp:221: File "/var/www/horde/rpc.php"
>> is not in document root of Vhost "/var/www/swartsit.com/web"
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.134] Premature 
>> end of script headers: rpc.php
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.139] 
>> SoftException in Application.cpp:221: File "/var/www/horde/rpc.php"
>> is not in document root of Vhost "/var/www/swartsit.com/web"
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.139] Premature 
>> end of script headers: rpc.php
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.130] 
>> SoftException in Application.cpp:221: File "/var/www/horde/rpc.php"
>> is not in document root of Vhost "/var/www/swartsit.com/web"
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.130] Premature 
>> end of script headers: rpc.php
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.145] 
>> SoftException in Application.cpp:221: File "/var/www/horde/rpc.php"
>> is not in document root of Vhost "/var/www/swartsit.com/web"
>>
>> [Sun Jun 09 01:37:49 2013] [error] [client 198.142.230.145] Premature 
>> end of script headers: rpc.php
>>
>
> I'm not sure these error lines have something to do with nag...
>
> Are you getting any error on the screen when you try accessing nag? It 
> would be helpful if you paste them here.
>
I'll try to expand upon my issue.
If I add that line to my configuration file /etc/apache2/conf.d/horde.conf it errors when I try to go to the Horde login page - https://www.swartsit.com/horde/login.php

Seeing that I use ISPConfig 3 and it sets up virtual folders for clients (and the host) to hold everything relating to that website in a different log location rather then /var/log/apache2/

So for me I have the following logs associated to my website (being the host doesn't differ from anything else)

/var/www/swartsit.com/log/access.log
/var/www/swartsit.com/log/error.log

I do still have some logging that relates to everyones websites that gets put into the standard location for logging but generally everything I need (to date) has been in the container for my website

That being said if you would like me to check any log just let me know.

This is what is shown in /var/www/swartsit.com/log/error.log

[Sun Jun 09 12:59:08 2013] [error] [client 124.149.111.192] SoftException in Application.cpp:221: File "/var/www/horde/index.php" is not in document root of Vhost "/var/www/swartsit.com/web"
[Sun Jun 09 12:59:08 2013] [error] [client 124.149.111.192] Premature end of script headers: index.php

This is what is shown in /var/www/swartsit.com/log/access.log

124.149.111.192 - - [09/Jun/2013:12:59:08 +0800] "GET /horde/ HTTP/1.1" 
500 829 "-" "Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0"

Please note that this is a blanket problem across access to horde (to log in), and even trying to access directly nag, imp, etc. Same error, same issue.

However using my configuration the problem goes away and horde is accessible and all is honky dory. Well everything except for Nag.

Another point is that my document root for swartsit.com is located in /var/www/swartsit.com/web/ whilst horde resides in /var/www/horde. I don't know if that is the problem, but I'm pretty sure I can have it located anywhere and using configuration files change the way apache looks for it.

>> Please note:
>>
>>
>> My server is Debian based
>>
>> Running Control panel ISPConfig 3 - which means I have virtual 
>> servers and containers
>>
>> Therefore instead of my webroot being
>>
>>
>> /var/www/
>>
>>
>> It is
>>
>>
>> /var/www/swartsit.com/web/
>>
>>
>> Horde however is installed into:
>>
>>
>> /var/www/horde
>>
>>
>> Using my configuration I can use everything to do with Horde, except 
>> Nag
>>
>>
>>> And (in ubuntu server):
>>> sudo a2enmod rewrite
>>> sudo service apache2 restart
>>> Luis Felipe.
>>
>> Steven Swarts
>>
>

Steven Swarts



More information about the horde mailing list