我在 Windows 7 机器上运行 Xampp。我有一个网站,它在我的 Web 根目录中运行。我通过以下方式访问该网站http://localhost/foobar。
http://localhost/foobar
我想设置它,以便我可以指向我的本地浏览器说http://foobar,并让它将 foobar 目录视为 Web 根目录。
http://foobar
这是更改 apache 上的主机文件或配置的问题吗?
windows-7 apache-http-server xampp hosts-file
apache-http-server ×1
hosts-file ×1
windows-7 ×1
xampp ×1