我正在使用Xampp
在我的本地托管php网站进行开发我已经尝试了每个解决方案我得到了我的手但我仍然无法在我的机器上设置新的虚拟主机我没有问题,直到我从Windows 8.1将我的操作系统更新到Windows 10。我自己的电脑有Linux,完全没有问题。
这是我的文件请看看。
127.0.0.1 lhphoneparts.com www.lhphoneparts.com
127.0.0.1 lhchatsystem.lh www.lhchatsystem.lh
127.0.0.1 lhefficise.lh www.lhefficise.lh
127.0.0.1 lhefficise.com www.lhefficise.com
127.0.0.1 lhwwshoes.com www.lhwwshoes.com
127.0.0.1 lmlicenses.wip4.adobe.com
127.0.0.1 lm.licenses.adobe.com
0.0.0.1 mssplus.mcafee.com
来自Xampp的<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:/xampp/htdocs"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@oldopencart.lh
DocumentRoot "D:/xampp/htdocs/oldopencart"
ServerName oldopencart.lh
ServerAlias www.oldopencart.lh
ErrorLog "logs/oldopencart.lh-error.log"
CustomLog "logs/oldopencart.lh-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lhphoneparts.com
DocumentRoot "D:/xampp/htdocs/phoneparts"
ServerName lhphoneparts.com
ServerAlias www.lhphoneparts.com
ErrorLog "logs/lhphoneparts.com-error.log"
CustomLog "logs/lhphoneparts.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lhdoor.lh
DocumentRoot "D:/xampp/htdocs/door"
ServerName lhdoor.lh
ServerAlias www.lhdoor.lh
ErrorLog "logs/lhdoor.lh-error.log"
CustomLog "logs/lhdoor.lh-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lhefficise.lh
DocumentRoot "D:/xampp/htdocs/efficise"
ServerName lhefficise.lh
ServerAlias www.lhefficise.lh
ErrorLog "logs/lhefficise.lh-error.log"
CustomLog "logs/lhefficise.lh-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lhefficise.com
DocumentRoot "D:/xampp/htdocs/efficise"
ServerName lhefficise.com
ServerAlias www.lhefficise.com
ErrorLog "logs/lhefficise.com-error.log"
CustomLog "logs/lhefficise.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lhchatsystem.lh
DocumentRoot "D:/xampp/htdocs/chatsystem"
ServerName lhchatsystem.lh
ServerAlias www.lhchatsystem.lh
ErrorLog "logs/lhchatsystem.lh-error.log"
CustomLog "logs/lhchatsystem.lh-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@lhwwshoes.com
DocumentRoot "D:/xampp/htdocs/wwshoes"
ServerName lhwwshoes.com
ErrorLog "logs/lhwwshoes.com-error.log"
CustomLog "logs/lhwwshoes.com-access.log" common
</VirtualHost>
我拥有所有虚拟主机设置,然后我更新到Windows 10它们工作正常并且仍能正常工作但更新后我开始处理此项目wwShoes
并且我创建了
lhwwshowes.com
但是,当我打开lhwwshoes.com
或www.lhwwshoes.com
时,它会重定向到localhost/wwshoes
,这是我lhwwshoes.com
希望我能得到这方面的努力让我摆脱这个问题 提前谢谢你,我真的很适合你的帮助 如果我错过了一些可以随意提问的话,请告诉我。