1
我想用Nginx
設置gitweb。用nginx設置git instaweb
但git instaweb
支持很少的Web服務器,包括的httpd,Apache的,使用WEBrick等
我試圖使用nginx Git中instaweb HTTP守護程序,但失敗了。
[[email protected]:/src/project]$ git instaweb -d nginx
Unknown httpd specified: nginx
我也試過在混帳instaweb手冊頁給它配置在.git/config
。
[instaweb]
local = true
httpd = nginx
port = 4321
browser = firefox
它也不工作。有沒有辦法或黑客使其工作?
我檢查了apache2的'-d'參數。它設置'serverroot'。在nginx中沒有辦法做到這一點。 (我看到'man nginx')。在nginx中,必須將新站點顯式添加到sites-enable作爲虛擬主機或默認主機。 – smitrp 2013-05-11 12:01:03