2 listen 80 default_server;
3 listen [::]:80 default_server;
7 index index.html index.htm index.nginx-debian.html;
12 # First attempt to serve request as file, then
13 # as directory, then fall back to displaying a 404.
14 try_files $uri $uri/ =404;
23 root /usr/share/gitweb/;
24 include fastcgi_params;
26 fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
27 fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
28 fastcgi_pass unix:/var/run/fcgiwrap.socket;
31 location /static { # gitweb static files
32 root /usr/share/gitweb;
33 try_files $uri $uri/ =404;