summaryrefslogtreecommitdiffstats
path: root/scripts/httpd.conf
blob: c70e3a5f9d7abc5e9ecbc8a2c17107a8659932a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server "<server-name>" {
     listen on * tls port 443

     # rest of the tls config - see man pages

     location "/prices" {
         authenticate with "/htdocs/atlas/.htpasswd"
         fastcgi {
         socket "/run/atlas.sock"
         }
     }
}

server "<server-name>" {
     # redirect http to https
     listen on * port 80

     locaion "/prices" {
         block return 301 "https://$HTTP_HOST$REQUEST_URI"
     }
}