Fully Qualified Domain Names (Create an alias for localhost)
1) Go to C:\WINDOWS\system32\drivers\etc and open the hosts file in a text editor.
2) Inside the hosts file it contains this line
127.0.0.1 localhost
create another alias for localhost that looks like a fully qualified domain name, like:
127.0.0.1 localhost www.louisling.com
or like this:
127.0.0.1 localhost
127.0.0.1 pclouis
127.0.0.1 www.louisling.com
1) Go to C:\WINDOWS\system32\drivers\etc and open the hosts file in a text editor.
2) Inside the hosts file it contains this line
127.0.0.1 localhost
create another alias for localhost that looks like a fully qualified domain name, like:
127.0.0.1 localhost www.louisling.com
or like this:
127.0.0.1 localhost
127.0.0.1 pclouis
127.0.0.1 www.louisling.com
本文介绍如何通过修改Windows系统的hosts文件来为localhost创建一个完全限定域名(FQDN)的别名,例如添加www.louisling.com作为localhost的别名。
1239

被折叠的 条评论
为什么被折叠?



