From 283087d2ce8c7721d80d01a7e7f74b3de9191160 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sat, 24 Sep 2022 19:48:03 +0800 Subject: [PATCH] opt some --- etc/conf/locations.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/conf/locations.conf diff --git a/etc/conf/locations.conf b/etc/conf/locations.conf new file mode 100644 index 00000000..b679849f --- /dev/null +++ b/etc/conf/locations.conf @@ -0,0 +1,9 @@ +location / { + include header.conf; + if ($http_user_agent ~* "^Wget") { + proxy_pass http://contexts; + break; + } + return 302 https://$server_name/; +} +