PDA

View Full Version : How to redirect webmail


jysse
18th May 2009, 12:43
Using Debian Lenny and Ispconfig 3.

Server is working fine but there this little detail that I don't manage to work out.
What to do to get webmail working for different domains ?
I can log in with address http://servers-ip-address/webmail but not with a domain address like http://mydomain.com/webmail

There is link in /var/www (webmail -> /usr/share/squirrelmail/) which works fine but if I try to do a same kind of link in /var/www/mydomain.com/web it does not work but gives me Error 500

Thanks,

Jysse

till
18th May 2009, 14:51
If you get an error, then look into the error.log to get the exact reason for it.

jysse
19th May 2009, 13:34
[Tue May 19 13:26:54 2009] [error] [client xx.xx.xx.xx] SoftException in Application.cpp:202: Script "/var/www/clients/client1/web9/web/webmail/index.php" resolving to "/usr/share/squirrelmail//index.php" not within configured docroot
[Tue May 19 13:26:54 2009] [error] [client xx.xx.xx.xx] Premature end of script headers: index.php

I found this from error.log

Can you help me with this one ?

Thanks,
Jysse

falko
19th May 2009, 15:55
Is FollowSymlinks enabled for that vhost?

jysse
19th May 2009, 18:11
Yes, it was enabled. After all, I did not change anything but restarted Apache and it started working !
Anyway, thanks for your help.