从帐户域运行CPanel

我们有一台运行WHM / CPanel的服务器,有相当多的(〜60)低stream量站点,我们不能打扰到一个适当的托pipe平台。

可以在http://example.com/cpanel的每个域上访问CPanel,但是这会redirect到http:// servers-fqdn:2083 / 。 我曾在其他CPanel服务器的/ cpanel链接redirect到http://example.com:2083/所以每个CPanel都在自己的域下运行,但我似乎无法find任何文件如何得到这个工作。

有两个原因是有用的;

  1. 我经常访问CPanel站点,但是因为他们都redirect到服务器主要的主机名(而CPanel使用HTTPauthentication),所以我只能保存一个用户名/密码组合,让它在不同的域上让我保存每个用户名/密码。
  2. 当我们的实际用户login时,我会看起来更好,因为服务器主(FQDN)是reeaaallllly长

所以,这是为了方便比任何实际更多,但仍然。

简写;

许多网站与CPanel,但访问时

http://example1.com/cpanel redirects to http://server-fqdn:2083/ http://example2.com/cpanel redirects to http://server-fqdn:2083/ [etc] 

我们想要

 http://example1.com/cpanel redirects to http://example1.com:2083/ http://example2.com/cpanel redirects to http://example2.com:2083/ 

对服务器的完全根访问权限(我是一个真正的系统pipe理员,但像CPanel一样的用户),WHM版本WHM 11.30.5,RedHat Enterprise Linux 5.5

它redirect到服务器主机名的原因是,你只需要得到一个SSL证书。 build议将其保留在主机名并强制SSL。

这就是说,你可以按你想要的方式来做。

login到WHM>调整设置>redirect

  • 始终redirect到SSL = OFF
  • 非SSLredirect目标=源域名
  • SSLredirect目标= SSL证书名称