Pro Git 2nd Edition 2.1.413time. Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called git-http-backend on the server. This CGI will read the path and headers sent by a git fetch or git if the client can communicate over HTTP (which is true for any client since version 1.6.6). If the CGI sees that the client is smart, it will communicate smartly with it; otherwise it will fall back to with Apache as the CGI server. If you don’t have Apache setup, you can do so on a Linux box with something like this: $ sudo apt-get install apache2 apache2-utils $ a2enmod cgi alias env This also0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413time. Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called git-http-backend on the server. This CGI will read the path and headers sent by a git fetch or git if the client can communicate over HTTP (which is true for any client since version 1.6.6). If the CGI sees that the client is smart, it will communicate smartly with it; otherwise it will fall back to with Apache as the CGI server. If you don’t have Apache setup, you can do so on a Linux box with something like this: $ sudo apt-get install apache2 apache2-utils 117 $ a2enmod cgi alias env This also0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 time. Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called git-http-backend on the server. This CGI will read the path and headers sent by a git fetch or git if the client can communicate over HTTP (which is true for any client since version 1.6.6). If the CGI sees that the client is smart, it will communicate smartly with it; otherwise it will fall back to with Apache as the CGI server. If you don’t have Apache setup, you can do so on a Linux box with something like this: $ sudo apt-get install apache2 apache2-utils $ a2enmod cgi alias env This also0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66一般只需要在服务器上启用一个 Git 自带的名为 git-http-backend 的 CGI 脚 本。 该 CGI 脚本将会读取由 git fetch 或 git push 命令向 HTTP URL 发送的请求路径和头部信息, 来判断 该客户端是否支持 HTTP 通信(不低于 1.6.6 版本的客户端支持此特性)。 如果 CGI 发现该客户端支持智能 (Smart)模式,它将会以智能模式与它进行通信, 否 在完成以上简单的安装步骤后, 我们将用 Apache 来作为 CGI 服务器。 如果你没有安装 Apache,你可以在 Linux 环境下执行如下或类似的命令来安装: $ sudo apt-get install apache2 apache2-utils $ a2enmod cgi alias env 该操作将会启用 mod_cgi, mod_alias 和 mod_env 等 Apache 模块, 模块, 这些模块都是使该功能正常工作所必须 的。 你还需要将 /srv/git 的 Unix 用户组设置为 www-data,这样 Web 服务器才能读写该仓库, 因为运行 CGI 脚 本的 Apache 实例默认会以该用户的权限运行: $ chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作为 Web0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66务器上启用一个 Git 自带的名为 git-http-backend 的 CGI 脚本。 该 CGI 脚本 将会读取由 git fetch 或 git push 命令向 HTTP URL 发送的请求路径和头部 信息, 来判断该客户端是否支持 HTTP 通信(不低于 1.6.6 版本的客户端支持 此特性)。 如果 CGI 发现该客户端支持智能(Smart)模式,它将会以智能 模式与它进行通信, 在完成以上简单的安装步骤后, 我们将用 Apache 来作为 CGI 服务器。 如果 你没有安装 Apache,你可以在 Linux 环境下执行如下或类似的命令来安装: $ sudo apt-get install apache2 apache2-utils $ a2enmod cgi alias env 该操作将会启用 mod_cgi, mod_alias 和 mod_env 等 Apache Apache 模块, 这些模块 都是使该功能正常工作所必须的。 你还需要将 /srv/git 的 Unix 用户组设置为 www-data,这样 Web 服务器才 能读写该仓库, 因为运行 CGI 脚本的 Apache 实例默认会以该用户的权限运 行: $ chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend0 码力 | 670 页 | 13.59 MB | 1 年前3
共 5 条
- 1













