【求助】ubuntu上apache设置虚拟主机会抢索引页怎么办
apache吧
全部回复
仅看楼主
level 1
pao590103 楼主
我在一个VPS上设置了两个由wordpress设置的站
111.com
222.com
如果输入不同完整的页面网址两个网站个别都没问题
可以正常显示
现在问题来了
如果只是单纯在网址输入222.com一律跳到111.com
经过检查
就是索引页index.php惹的祸
但是不管我怎么设置
222.com都直接显示111.com
怎么解决这个问题?
由于两个网站都是wordpress
文档结构都一样
所以不要叫我改wordpress
2014年10月30日 00点10分 1
level 1
pao590103 楼主
简单说
指向与内页都没问题
就是首页不行
ServerName aaa.com
ServerAdmin [email protected]
DocumentRoot /home/aaa/public_html
<Directory /home/aaa/public_html>
AllowOverride All
Require all granted
</Directory>
ErrorLog /home/aaa/aaa.com_error.log
CustomLog /home/aaa/aaa.com_access.log "combined"
两个设置的方式都一样
只是名字不同而已
2014年10月30日 04点10分 2
1