virtualmin上的虚拟服务器不断重定向到错误的网站 [英] Virtual server on virtualmin keeps redirecting to wrong website
问题描述
我创建了一个名为aaa.com的虚拟服务器,但是当我访问该站点时(通过在Windows 7上编辑主机文件,因为我在Internet上运行着一个实时的aaa.com),它将我带到另一个虚拟服务器我拥有的服务器站点,例如bbb.com
I have created a virtual server say aaa.com but when I access the site (via editing my hosts file on Windows 7, cos I have a live aaa.com running on the Internet), it brings me to my other virtual server's site I have, like bbb.com
那是为什么?我没有任何重定向运行.不在我的脚本文件(例如html或php)中,并且在服务器配置"->网站重定向"下未设置重定向,在服务"->单击配置网站"->别名和重定向"下也未设置任何重定向.我仅有的脚本文件是全新的WordPress新安装文件(位于home/aaa/public_html下).
Why is that? I don't have any redirection running. Not in my script files (like html or php) and no redirection set under "Server Configurations" -> "Website Redirects" and none at "Services" -> "Click Configure Website" -> "Aliases and Redirects." The only script files I have are fresh new WordPress installation files (under home/aaa/public_html).
我该如何解决?
推荐答案
Mullazman是正确的(谢谢!).在域A上启用SSL之后,我刚刚遇到了这个问题.然后,同一安装中的所有域都指向A.
Mullazman is right (thanks!). I have just had this problem after enabling the SSL on the domain A. Then, all the domains in the same installation were pointing to A.
我通过编辑/etc/apache2/sites-enabled/A.conf
中的文件并更改第一行来对其进行修复:
I fixed it by editing the file located in /etc/apache2/sites-enabled/A.conf
and changing the first line:
错误的行-> <VirtualHost A.B.C.D:80>
正确的行-> <VirtualHost *:80>
这篇关于virtualmin上的虚拟服务器不断重定向到错误的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!