0
我想将子域网络邮件重定向到该域的/ roundcube。这必须适用于Apache中的所有虚拟主机。将子域重定向到/文件夹
例子:
webmail.example.com必须指向example.com/roundcube
这怎么可能[WWW。]?必须完成的服务器配置为直接管理员:S
我想将子域网络邮件重定向到该域的/ roundcube。这必须适用于Apache中的所有虚拟主机。将子域重定向到/文件夹
例子:
webmail.example.com必须指向example.com/roundcube
这怎么可能[WWW。]?必须完成的服务器配置为直接管理员:S
mod_rewrite
是你的朋友。
尝试这样的事情在你的Apache配置VirtualHost
:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail\.[^.]+\.[^.]+$
RewriteRule ^webmail\.([^.]+)\.([^.]+)$ http://www.$1.$2/roundcube [R=permanent]
...并配置DNS指向webmail.example.com
到同一台服务器www.example.com
。