diff options
Diffstat (limited to 'scripts/httpd.conf')
| -rw-r--r-- | scripts/httpd.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/httpd.conf b/scripts/httpd.conf new file mode 100644 index 0000000..c70e3a5 --- /dev/null +++ b/scripts/httpd.conf @@ -0,0 +1,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" + } +} |
