产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 为什么自建的404.php不能实现呢

amysql
创始人
99532.51 价值分

life169 发表于 2013-09-16 10:45:23
引用:
l12ab 发表于 2013-9-16 20:56
error_page 404 /ErrorPages/404.php;
error_page 502 /ErrorPages/502.php;
location ~ /ErrorPages/(40 ...


直接 error_page 404 /404.php;
这样也没问题,

楼主:
/usr/local/nginx/sbin/nginx -t
测试Nginx配置是否正常。
评价: 这个回复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2013-09-16 22:59:34 11

AMH面板 - 好用高效低占用、安全可靠极稳定

life169
铁牌会员
151.00 价值分

[root@xxxx sbin]# nginx -t
-bash: nginx: command not found

这是为什么呀?难道我的nginx没装好?
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2013-09-17 07:06:31 12

life169
铁牌会员
151.00 价值分

[root@xxxx /]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2013-09-17 07:43:17 13

amysql
创始人
99532.51 价值分

引用:
life169 发表于 2013-9-17 07:43
[root@xxxx /]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/ng ...


正常的。
PM root我去看看吧。
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2013-09-17 15:46:54 14
< 1 2  (总2页)
AMH社区列表
用户服务中心