摘要: 反向代理: proxy_pass http://127.0.0.1:8000 是python 提供的http服务。 访问:http://127.0.0.1/n 结果重定向到:http://127.0.0.1/test/ 404 Not Found 访问:http://127.0.0.1/n/ 结果正 阅读全文
posted @ 2017-11-29 17:58 懒企鹅 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 配置文件: server_name 表示没有设置Host字段的请求都返回405,也可以写一个非标码(444)表示关闭连接。 添加虚拟主机: 当然,需要修改hosts文件: 添加: html/下新建ngx1.html,ngx2.html 浏览器测试: http://192.168.2.192/ 405 阅读全文
posted @ 2017-11-29 16:55 懒企鹅 阅读(293) 评论(0) 推荐(0) 编辑