2010年02月 的归档

Nginx + PHP-FPM (11: Resource temporarily unavailable)

今天在测试服务器上搭了 Nginx + PHP-FPM 的环境,结果发现 PHP 页面频繁出现 502 Bad Gateway 错误。
Nginx 版本:nginx/0.7.61
PHP-FPM:php-5.3.0-fpm-0.5.12

继续阅读本文……

发表评论

Nginx 下架设 Codeigniter 使用 ORG_PATH_INFO

我的 Codeigniter 中原来设置的 uri_protocol 是 PATH_INFO,我的 nginx 的配置可以看:
http://hily.me/blog/2010/02/nginx-path-info/
今天发现在 uri 中带中文的时候,PATH_INFO 会被截断,如下:

继续阅读本文……

发表评论

配置 nginx 支持 PATH_INFO

示例配置:

server {
listen 80;
server_name localhost;

继续阅读本文……

发表评论 (2)

配置 UCenter Home 2.0 实现个性化二性域名

我的 UCenter Home 2.0 安装在 http://home.taounion.com/,现在准备以 *.taounion.com 作为个人主页的个性域名,如 http://hily.taounion.com/

步骤:

  1. 在域名控制面板中设置 taounion.com 的泛域名解析 *.taounion.com 到你的服务器 IP。
  2. 在 UCenter Home 后台设置中启用“二级域名功能”,并设置二级域名根域名,我的是“taounion.com”。

发表评论