我在Ubuntu 10.04服务器上安装了RoundCube,并且在浏览到address.tld / roundcube时可以正常工作
但是我想能够去mail.address.tld
为此,我添加了以下虚拟主机configuration:
<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>
Roundcube页面可以打开,但PHPfunction无法正常工作。 我想解决这个问题。
它看起来像ServerName行是错误的。 只要在最后删除“/ roundcube”。
请使用以下内容告诉我们,/var/log/yourdomain.error.log中的发现是什么。
<VirtualHost mail.address.tld> ServerAdmin webmaster@localhost ServerName mail.address.tld DocumentRoot /var/www/roundcube ErrorLog /var/log/yourdomain.error.log </VirtualHost>
得到它了!
我允许在Apache中的符号链接
然后修改符号链接指向javescript文件的完整path。 默认情况下它使用相对path。
ln -s /usr/share/javascript/jquery/jquery.min.js jquery-1.3.min.js
感谢大家的帮助!