首页 > 编程知识 正文

nginx伪造host,配置hosts文件

时间:2023-05-05 16:05:01 阅读:131853 作者:1072

3358 www.Sina.com/http://www.Sina.com/c/windows/system32/drivers/etc/host

ip域名

127.0.0.1 image.jt.com

127.0.0.1 manage.jt.com

127.0.0.1 web.jt.com

本地host,

根/coof/nginx.conf

http{server {#端口列表ten :80; #域名server_name www.baidu.com; #文件位置localhost/{#根根根root: xxx; #默认主页index: index.html、index.htm、index.php; }#集群upstream jq {#散列绑定#ip_hash; 服务器本地主机:8080; 服务器本地主机:8090; }server {listten 80; 服务器_ name域名; location/{#map远程链接proxy_path http://jq; } }

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。