nginx:500 Internal Server Error
首先说明一下,这是一个nginx rewrite配置不当引起的500错误。因为学习CodeIgniter(CI),要去掉那个index.php显示,配置了conf,引起这个错误。 配置片段: [sourcecode language="plain"] location / { error_page …
标签:CodeIgniter, nginx, 配置首先说明一下,这是一个nginx rewrite配置不当引起的500错误。因为学习CodeIgniter(CI),要去掉那个index.php显示,配置了conf,引起这个错误。 配置片段: [sourcecode language="plain"] location / { error_page …
标签:CodeIgniter, nginx, 配置环境:centos 6.4 + php5.5 + nginx nginx配置中,在location / { }中增加一行 include "网站路径/.htaccess"; 放第一行即可。 .htaccess的内容为: deny 禁止的IP网段; 大概有2300多个网段。为了方便大家,我把.htac…
标签:nginx, 反向代理, 指定IP, 配置