このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
git2:server:git-web [2020/06/05 07:25] y2sunlight [Apacheの設定] |
git2:server:git-web [2020/06/16 15:28] (現在) y2sunlight [Apacheの設定] |
||
---|---|---|---|
行 6: | 行 6: | ||
[[git: | [[git: | ||
- | 本章では、社内用のGitサーバーの構築について説明します。本編の[[git2: | + | 本章では、社内用のGitサーバーの構築について説明します。本編の「[[git2: |
サーバー環境 | サーバー環境 | ||
行 16: | 行 16: | ||
* [[git2: | * [[git2: | ||
* Gitサーバーの構築 - Git Web | * Gitサーバーの構築 - Git Web | ||
- | * [[git: | + | * [[git2: |
リンク | リンク | ||
行 48: | 行 48: | ||
{{fa> | {{fa> | ||
<code perl gitweb.cgi> | <code perl gitweb.cgi> | ||
+ | ... | ||
85 # absolute fs-path which will be prepended to the project path | 85 # absolute fs-path which will be prepended to the project path | ||
86 #our $projectroot = "/ | 86 #our $projectroot = "/ | ||
87 our $projectroot = "/ | 87 our $projectroot = "/ | ||
+ | ... | ||
</ | </ | ||
行 57: | 行 59: | ||
===== Apacheの設定 ===== | ===== Apacheの設定 ===== | ||
- | > TODO | + | |
+ | GitWeb をインストールすると ''/ | ||
{{fa> | {{fa> | ||
行 70: | 行 73: | ||
</ | </ | ||
+ | これを参考に「[[git2: | ||
{{fa> | {{fa> | ||
行 96: | 行 100: | ||
Require host localhost | Require host localhost | ||
Require ip 127.0.0.1 | Require ip 127.0.0.1 | ||
- | Require ip 192.168.11.0/24 | + | Require ip 192.168.1.0/24 |
</ | </ | ||
行 110: | 行 114: | ||
</ | </ | ||
+ | </ | ||
+ | |||
+ | * ''/ | ||
+ | * ''/ | ||
+ | * ''/ | ||
+ | |||
+ | 編集が終わったら、Apacheを再起動します。 | ||
+ | |||
+ | < | ||
+ | systemctl restart httpd | ||
</ | </ | ||
行 115: | 行 129: | ||
===== GitWebへのアクセス ===== | ===== GitWebへのアクセス ===== | ||
- | > TODO | + | |
+ | ブラウザで以下のURLにアクセスして下さい。 | ||
+ | |||
+ | <code> | ||
+ | http:// | ||
+ | </ | ||
+ | |||
+ | [{{: | ||
+ | ■ ロポジトリの一覧が表示されます。 | ||
+ | ■ プロジェクト( ここでは '' | ||
+ | |||
+ | [{{: | ||
+ | ■ プロジェクトの summary が表示されます。\\ | ||
+ | ■ summaryの他に shortlog, log, commit, commitdiff, tree の表示が出来ます | ||
\\ | \\ | ||