Chinaunix首页 | 论坛 | 博客
  • 博客访问: 412818
  • 博文数量: 124
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 872
  • 用 户 组: 普通用户
  • 注册时间: 2018-03-29 14:38
个人简介

默默的一块石头

文章分类

全部博文(124)

文章存档

2022年(26)

2021年(10)

2020年(28)

2019年(60)

我的朋友

分类: LINUX

2022-05-18 16:53:49

安装软件包:
apt-get install git-core fcgiwrap nginx

配置nginx.conf:
location ~ /chro(/.*) {
# FastCGI 参数
fastcgi_pass  unix:/var/run/fcgiwrap.socket;
 #Git-http-backend为Git自带的CGI脚本
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
# git 库在服务器上的跟目录
fastcgi_param GIT_PROJECT_ROOT    /home/chro/git/chro;
fastcgi_param PATH_INFO           $1;
# 将认证用户信息传递给 fastcgi 程序
fastcgi_param REMOTE_USER $remote_user;
# 包涵默认的 fastcgi 参数;
include       fastcgi_params;
# 将允许客户端 post 的最大值调整为 100 兆
#max_client_body_size 100M;
}

阅读(1063) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~