nginx
zhongzunfa
Spring Cloud 中国社区创始人之一, 《重新定义 Spring Cloud 实战》作者, 主要研究 Spring Cloud, 微服务, 高可用架构,API网关, 参与社区多个开源项目的开发(sc-codegen, sc-dts 等),的核心开发者, 编程爱好者
展开
-
ngxin 操作遇到的问题
1、nginx: [emerg] bind() to 0.0.0.0:80 failed (13: permission denied) 回答: the socket API bind() to a port less than 1024, such as 80 as your title mentioned, need root access. here is “Bind t...原创 2018-06-26 20:33:20 · 325 阅读 · 0 评论 -
Nginx自定义404页面3种方法
一个网站项目,肯定是避免不了404页面的,通常使用Nginx作为Web服务器时,有以下集中配置方式,一起来看看。第一种:Nginx自己的错误页面Nginx访问一个静态的html 页面,当这个页面没有的时候,Nginx抛出404,那么如何返回给客户端404呢? 看下面的配置,这种情况下不需要修改任何参数,就能实现这个功能。server { listen 80;...转载 2018-06-27 17:31:20 · 4188 阅读 · 0 评论