mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
.
This commit is contained in:
@@ -11,20 +11,11 @@ server {
|
|||||||
{{nginx_access_log}}
|
{{nginx_access_log}}
|
||||||
{{nginx_error_log}}
|
{{nginx_error_log}}
|
||||||
|
|
||||||
#if ($bad_bot = 1) {
|
|
||||||
# return 403;
|
|
||||||
#}
|
|
||||||
|
|
||||||
if ($scheme != "https") {
|
if ($scheme != "https") {
|
||||||
rewrite ^ https://$host$uri permanent;
|
rewrite ^ https://$host$uri permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known {
|
{{settings}}
|
||||||
auth_basic off;
|
|
||||||
allow all;
|
|
||||||
}
|
|
||||||
|
|
||||||
{{basic_auth}}
|
|
||||||
|
|
||||||
try_files $uri $uri/ /index.php?$args =404;
|
try_files $uri $uri/ /index.php?$args =404;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user