]> begriffs open source - repo-ui/blob - httpd.conf
How to host gitweb
[repo-ui] / httpd.conf
1 logdir "/var/www/logs"
2
3 server "example.com" {
4         listen on * port 80
5         location "/.well-known/acme-challenge/*" {
6                 root "/acme"
7                 request strip 2
8         }
9         location * {
10                 block return 302 "https://$HTTP_HOST$REQUEST_URI"
11         }
12 }
13
14 server "example.com" {
15         listen on * tls port 443
16         tls {
17                 certificate "/etc/ssl/example.com.fullchain.pem"
18                 key "/etc/ssl/private/example.com.key"
19         }
20         location "/.well-known/acme-challenge/*" {
21                 root "/acme"
22                 request strip 2
23                 no fastcgi
24         }
25
26         location "/static/*" {
27                 root "/static"
28                 request strip 1
29                 no fastcgi      
30         }
31
32         location "/git/*" {
33                 root "/git"
34                 request strip 1
35                 no fastcgi
36         }
37
38         root "/cgi-bin/gitweb.cgi"
39         fastcgi {
40                 socket "/run/slowcgi.sock"
41                 param GITWEB_CONFIG "/conf/gitweb.conf"
42         }
43 }