summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-available/www.git.site
blob: 26679be33684e3c5fa04673945921b9393fd9dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
       listen 80;
	listen   [::]:80; ## listen for ipv4; this line is default and implied
	# listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

	# Make site accessible from http://localhost/
	server_name www.git.taler.net;


	location /index.cgi {
            root /usr/share/gitweb/;

            include fastcgi_params;
            gzip off;
	    fastcgi_param SCRIPT_NAME $uri;
            fastcgi_param   GITWEB_CONFIG  /etc/gitweb.conf;
            fastcgi_pass    unix:/var/run/fcgiwrap.socket;
	}

        location / {
            root /usr/share/gitweb/;
            index index.cgi;
        }
}