check in stub provisionally titled "The Writer's Room"
[Ultimately_Untrue_Thought.git] / provisioning / nginx_siteconf
1 server {
2         listen 80 default_server;
3         listen [::]:80 default_server;
4
5         root /var/www/html;
6
7         index index.html index.htm index.nginx-debian.html;
8
9         server_name _;
10
11         location / {
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;
15         }
16
17         location /papers {
18             root /var/www;
19             autoindex on;
20         }
21
22         location /source {
23             root /usr/share/gitweb/;
24             include fastcgi_params;
25             gzip off;
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;
29         }
30
31         location /static { # gitweb static files
32             root /usr/share/gitweb;
33             try_files $uri $uri/ =404;   
34         }
35
36 }