diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-11-01 09:46:52 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-11-01 09:46:52 +0800 |
| commit | 9f938ab8ba5af561bd44dbc7142f338ce317a01a (patch) | |
| tree | 7104ce2ac9456c5895f752eff26bad31f8436978 /scripts/httpd.conf | |
| download | etlas-9f938ab8ba5af561bd44dbc7142f338ce317a01a.tar.gz | |
Etlas project.
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" + } +} |
