Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ubuntu server, nginx, and cgit via fcgiwrap+spawn-fcgi
# install nginx via your favorite method
# ensure primary nginx config file `/etc/nginx/nginx.conf` contains the following within
# the `http` block so that symlinked config from /etc/nginx/sites-available/* are included
include /etc/nginx/sites-enabled/*;
# install deps and build fcgiwrap
sudo aptitude install spawn-fcgi libfcgi-dev
curl -L -o fcgiwrap-1.1.0.tar.gz
tar xzf fcgiwrap-1.1.0.tar.gz && cd fcgiwrap-1.1.0
autoreconf -i && ./configure && make
sudo cp -i fcgiwrap /usr/local/sbin
# download and build cgit
curl -L -O
tar xJf cgit-0.10.1.tar.xz && cd cgit-0.10.1
vim cgit.conf
# add the following lines to cgit.conf
GIT_VER = 1.9.1
GIT_URL =$(GIT_VER).tar.gz
make get-git
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.