配置默认站点,为 域名
站点配置域名 127.0.0.1
然后 在本地服务器 修改hosts文件
127.0.0.1。 域名
然后在shell 里。curl 127.0.0.1.报302
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="htt1111111域名/">here</a>.</p>
<hr>
<address>Apache Server at 127.0.0.1 Port 80</address>
</body></html>
但是wget 127.0.0.1。就把index下载下来了, 里面就是默认站点页面,
这是为啥
|
|