Chinaunix首页 | 论坛 | 博客
  • 博客访问: 177842
  • 博文数量: 55
  • 博客积分: 1471
  • 博客等级: 上尉
  • 技术积分: 420
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-08 14:00
文章分类

全部博文(55)

文章存档

2012年(5)

2011年(50)

分类: LINUX

2012-02-27 09:53:33

1、端口
  1. location ~ ^/~(.+?)/(.+/)?(.+?\.php)$ {
  2.     root /home/$1/www/$2;
  3.     fastcgi_pass 127.0.0.1:9000;
  4.     fastcgi_index index.php;
  5.     #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  6.     fastcgi_param SCRIPT_FILENAME /home/$1/public_html/$2$3;
  7.     include fastcgi_params;
  8. }

  9. location ~ ^/~(.+?)(/.*)?$ {
  10.     alias /home/$1/public_html$2;
  11.     #autoindex on;
  12. }
2、socket
  1. location ~ ^/(.+?)/(.+/)?(.+?\.php)$ {
  2.         root /home/$1/www/$2;
  3.         fastcgi_pass unix:/tmp/php-fcgi.sock;
  4.         fastcgi_index index.php;
  5.         fastcgi_param SCRIPT_FILENAME /home/$1/www/$2$3;
  6.         include fastcgi_params;
  7.     }

  8.     location ~ ^/(.+?)(/.*)?$ {
  9.         alias /home/$1/www$2;
  10.         index index.php index.html index.htm;
  11.     }
参考地址:
http://laymanz.com/blog/?p=274


阅读(1432) | 评论(0) | 转发(0) |
0

上一篇:linux 配置IP池 ----ip range

下一篇:没有了

给主人留下些什么吧!~~