我试图通过添加一个虚拟主机来完成圆形立方体的设置,因此服务器上的每个订阅都将使用 webmail.servername.com 来访问它。
我已经上传了这个带有代码的 roundcube.conf 文件:
<VirtualHost ip-one:7080 \ ip-two:7080 \ local-ip:7080>
ServerName roundcube.webmail
ServerAlias roundcube.webmail.*
ServerAdmin "fdmatte@gmail.com"
DocumentRoot "/var/www/roundcube/"
<Directory "/var/www/roundcube/">
Options +FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
</IfModule>
# This is needed to parse /var/lib/roundcube/.htaccess. See its
# content before setting AllowOverride to None.
AllowOverride All
order allow,deny
allow from all
</Directory>
我遇到的问题如下:
- 当我访问像http://www.mywebiste.com这样的网站时使用这个文件,它会被路由到http://mywebsite.com
- 当我访问 webmail.mywebsite.com 时,roundcube 被加载,但找不到包含的文件,如 css 和 js
它只有在我访问 ip-one:7080 时才能正常工作,然后它可以正常加载所有 css 和 js,我可以登录、检查和发送电子邮件。
我的设置有问题吗?我正在使用 plesk 11.5.30