与 "配置" 有关的文章

nginx:500 Internal Server Error

nginx:500 Internal Server Error

- 2015年10月31日 - 学习偶记 - 1 条评论 - 7555浏览 阅读更多...

首先说明一下,这是一个nginx rewrite配置不当引起的500错误。因为学习CodeIgniter(CI),要去掉那个index.php显示,配置了conf,引起这个错误。 配置片段: [sourcecode language="plain"] location / { error_page …

标签:, ,
不允许中国用户访问网站

不允许中国用户访问网站

- 2015年10月2日 - 学习偶记 - 评论已关闭 - 4859浏览 阅读更多...

环境:centos 6.4 + php5.5 + nginx nginx配置中,在location / { }中增加一行 include "网站路径/.htaccess"; 放第一行即可。 .htaccess的内容为: deny 禁止的IP网段; 大概有2300多个网段。为了方便大家,我把.htac…

标签:, , ,