diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-16 00:14:26 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-16 00:14:26 +0200 |
| commit | d719cb0762f1a5c83f6e18858d6ad7f7bb6035a7 (patch) | |
| tree | 04ac2677aa5c0a02067d74ed4c8dfc23d2138c7d /frontends/etc | |
| parent | 13b5ea8e1cb6a7fd513ba7ae6828234fec5d5115 (diff) | |
redirect www -> without www
Diffstat (limited to 'frontends/etc')
| -rw-r--r-- | frontends/etc/httpd.conf.tpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl index 1937b70..afe9581 100644 --- a/frontends/etc/httpd.conf.tpl +++ b/frontends/etc/httpd.conf.tpl @@ -43,8 +43,12 @@ server "<%= $prefix.$host %>" { block return 302 "https://<%= $prefix.$host %>" } location * { + <% if ($prefix eq 'www.') { -%> + block return 302 "https://<%= $host %>$REQUEST_URI" + <% } else { -%> root "/htdocs/gemtexter/<%= $host %>" directory auto index + <% } -%> } } <% } %> |
