简体   繁体   English

Apache VirtualHost用www指向错误的目录

[英]Apache virtualhost pointing to wrong directory with www

I have two virtualhosts, let's say the first one is main.com and the 2nd one is second.com I have an issue, when I type in url address second.com, the document root is right but when I add a "www", "www.second.com", it redirects me to main.com How can I fix that issue? 我有两个虚拟主机,比方说第一个是main.com,第二个是second.com我遇到了一个问题,当我输入URL地址second.com时,文档根目录是正确的,但是当我添加“ www”时,“ www.second.com”,它将我重定向到main.com。如何解决该问题? I'm having that issue with this domain: hostalcuadra11.com, when I add a www in front it redirects me to the wrong directory 我在以下域名存在问题:hostalcuadra11.com,当我在前面添加www时,会将我重定向到错误的目录

Thanks in advance 提前致谢

It Was server alias. 它是服务器别名。 Had to add a www Thanks 不得不添加www谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM