1.修改nginx安装目录下\conf\nginx.conf,修改server内容
2.重新加载
3.访问localhost,出现了403 Forbidden,是因为路径写错了
4.可以设置通过域名访问网站页面
C:\Windows\System32\drivers\etc下hosts文件中,
可将localhost改为网址,