1 map $sent_http_content_type $expires {
7 listen 80 default_server;
8 listen [::]:80 default_server;
12 index index.html index.htm index.nginx-debian.html;
19 # First attempt to serve request as file, then
20 # as directory, then fall back to displaying a 404.
21 try_files $uri $uri/ =404;
30 root /usr/share/gitweb/;
31 include fastcgi_params;
33 fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
34 fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
35 fastcgi_pass unix:/var/run/fcgiwrap.socket;
38 location /static { # gitweb static files
39 root /usr/share/gitweb;
40 try_files $uri $uri/ =404;