设置Nginx 404页面
来源:互联网 发布:m3轮毂数据 编辑:程序博客网 时间:2024/05/17 01:41
from
http://blog.sina.com.cn/s/blog_60be437a0100jp99.html
1.创建自己的404.html页面
2.更改nginx.conf在http定义区域加入:
fastcgi_intercept_errors on;
3.更改nginx.conf在server 区域加入:
error_page 404 = /404.html
4.测试nginx.conf正确性:
/opt/nginx/sbin/nginx –t
如果正确应该显示如下信息:
the configuration file /opt/nginx/conf/nginx.conf syntax is ok
configuration file /opt/nginx/conf/nginx.conf test is successful
5.重启nginx.
OK
- 设置Nginx 404页面
- nginx 设置403、404、等错误页面
- NGINX自定义404页面设置方法
- NGINX服务器404错误页面设置
- nginx如何设置自定义404页面
- nginx访问页面设置密码
- nginx 设置错误的自定义404页面跳转到500
- nginx 设置错误的自定义404页面跳转到500
- Nginx设置404错误页面的几种方法
- Apache,Nginx自动压缩页面设置
- nginx 配置404页面
- nginx 404页面配置
- NGINX配置404页面
- nginx 自定义404页面
- nginx 配置 404 错误 页面
- nginx自定义404错误页面
- nginx 服务器配置404 页面
- Nginx开启404自定义页面
- 学习c++
- 遇到的问题
- HelpProvider组件
- T_SQL插入数据
- T-SQL更新删除数据
- 设置Nginx 404页面
- ubuntuone 移除电脑以后不能再添加电脑的问题
- ubuntu10.04 安装nginx 及和tomcat的整合
- c语言也能干大事,让你的c语言无所不能!!!!
- 创建Cookie
- 读取Cookie
- 腾讯offer路 一路走来(转)
- 删除Cookie
- sql