0

i have RoundCube setup on a ubuntu 10.04 server, and it works perfectly when browsing to address.tld/roundcube

however I would like to be able to go to mail.address.tld

for this I have added the following virtual host config:

<VirtualHost mail.address.tld>
ServerAdmin webmaster@localhost
ServerName mail.address.tld/roundcube
DocumentRoot /var/www/roundcube
<Directory /var/www/roundcube>
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/roundcube>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

The Roundcube page is able to open however the PHP functions do not work correctly. I would like to resolve that.

4
  • Provide some details, what functions are not working ? What error messages are you getting ?
    – topdog
    Jul 23, 2010 at 7:01
  • The functions that are not working are things like reading mail and basicly anything dynamic on the page. replying, deleting forwarding and viewing messages in the viewing pane.
    – Grishanko
    Jul 23, 2010 at 22:48
  • what version of roundcube are you running? 0.3 stable? 0.4 beta? or the one that came with Ubuntu 10.04 (which is buggy)?
    – James
    Jul 25, 2010 at 5:55
  • I am using the version from Ubuntu.
    – Grishanko
    Jul 25, 2010 at 21:01

2 Answers 2

1

It looks like the ServerName line is wrong. Just delete the "/roundcube" at the end.

Please use the following and tell us, what your findings in /var/log/yourdomain.error.log are.

<VirtualHost mail.address.tld>
  ServerAdmin webmaster@localhost 
  ServerName mail.address.tld 
  DocumentRoot /var/www/roundcube 
  ErrorLog /var/log/yourdomain.error.log 
</VirtualHost>
5
  • I made this change however the problem is still occurring. Any other ideas?
    – Grishanko
    Jul 23, 2010 at 22:47
  • Did you create a DNS entry for mail.address.tld?
    – ddeimeke
    Jul 24, 2010 at 13:13
  • Yes I did, and the page does resolve correctly.
    – Grishanko
    Jul 24, 2010 at 15:24
  • Added an alternate definition to the answer.
    – ddeimeke
    Jul 25, 2010 at 5:24
  • Here is a section of the logs: [Tue Jul 27 13:16:14 2010] [error] [client 64.91.77.185] Symbolic link not allowed or link target not accessible: /var/www/roundcube/program/js/jquery-1.3.min.js, referer: mail.domain.tld [Tue Jul 27 13:16:19 2010] [error] [client 64.91.77.185] Symbolic link not allowed or link target not accessible: /var/www/roundcube/program/js/jquery-1.3.min.js, referer: mail.domain.tld/?_task=mail&_mbox=INBOX
    – Grishanko
    Jul 27, 2010 at 18:21
0

Got it!

I allowed symlinks in Apache

Then modified the the symlinks to point to the full path of of the javescript file. By default it was using a relative path.

ln -s /usr/share/javascript/jquery/jquery.min.js jquery-1.3.min.js

Thank for the help everyone!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .