diff options
| author | David Leutgeb <david@noreply.localhost> | 2024-10-17 13:53:24 +0200 |
|---|---|---|
| committer | David Leutgeb <david@noreply.localhost> | 2024-10-17 13:53:24 +0200 |
| commit | e1ff8be6f5e153d9686a8a212d968d691bc41c4c (patch) | |
| tree | 73b7d5f7a2b9ff525d8f8ad6b4018fceeb9b8721 | |
| parent | 20852782cf2cf0ba369fef69afb9b10f28456074 (diff) | |
| download | default_nginx_configs-e1ff8be6f5e153d9686a8a212d968d691bc41c4c.tar.gz default_nginx_configs-e1ff8be6f5e153d9686a8a212d968d691bc41c4c.zip | |
| -rw-r--r-- | https_redirect | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/https_redirect b/https_redirect new file mode 100644 index 0000000..8a50c29 --- /dev/null +++ b/https_redirect @@ -0,0 +1,9 @@ +# default http -> https redirect + +server { + listen 80 default_server; + server_name _; + location / { + return 301 https://$host$request_uri; + } +}
\ No newline at end of file |