summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leutgeb <david@noreply.localhost>2024-10-17 13:53:24 +0200
committerDavid Leutgeb <david@noreply.localhost>2024-10-17 13:53:24 +0200
commite1ff8be6f5e153d9686a8a212d968d691bc41c4c (patch)
tree73b7d5f7a2b9ff525d8f8ad6b4018fceeb9b8721
parent20852782cf2cf0ba369fef69afb9b10f28456074 (diff)
downloaddefault_nginx_configs-e1ff8be6f5e153d9686a8a212d968d691bc41c4c.tar.gz
default_nginx_configs-e1ff8be6f5e153d9686a8a212d968d691bc41c4c.zip
Add https_redirectHEADmain
-rw-r--r--https_redirect9
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