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,9 +11,9 @@ server {
|
|||||||
{{nginx_access_log}}
|
{{nginx_access_log}}
|
||||||
{{nginx_error_log}}
|
{{nginx_error_log}}
|
||||||
|
|
||||||
if ($bad_bot = 1) {
|
#if ($bad_bot = 1) {
|
||||||
return 403;
|
# return 403;
|
||||||
}
|
#}
|
||||||
|
|
||||||
if ($scheme != "https") {
|
if ($scheme != "https") {
|
||||||
rewrite ^ https://$host$uri permanent;
|
rewrite ^ https://$host$uri permanent;
|
||||||
@@ -26,7 +26,7 @@ server {
|
|||||||
|
|
||||||
{{basic_auth}}
|
{{basic_auth}}
|
||||||
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args =404;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
@@ -38,8 +38,8 @@ server {
|
|||||||
fastcgi_read_timeout 3600;
|
fastcgi_read_timeout 3600;
|
||||||
fastcgi_send_timeout 3600;
|
fastcgi_send_timeout 3600;
|
||||||
fastcgi_param HTTPS $fastcgi_https;
|
fastcgi_param HTTPS $fastcgi_https;
|
||||||
{{php_fpm_listener}}
|
fastcgi_pass 127.0.0.1:{{php_fpm_port}};
|
||||||
{{php_settings}}
|
fastcgi_param PHP_VALUE "{{php_settings}}";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ server {
|
|||||||
{{nginx_access_log}}
|
{{nginx_access_log}}
|
||||||
{{nginx_error_log}}
|
{{nginx_error_log}}
|
||||||
|
|
||||||
if ($bad_bot = 1) {
|
#if ($bad_bot = 1) {
|
||||||
return 403;
|
# return 403;
|
||||||
}
|
#}
|
||||||
|
|
||||||
if ($scheme != "https") {
|
if ($scheme != "https") {
|
||||||
rewrite ^ https://$host$uri permanent;
|
rewrite ^ https://$host$uri permanent;
|
||||||
@@ -26,7 +26,7 @@ server {
|
|||||||
|
|
||||||
{{basic_auth}}
|
{{basic_auth}}
|
||||||
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args =404;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
@@ -38,8 +38,8 @@ server {
|
|||||||
fastcgi_read_timeout 3600;
|
fastcgi_read_timeout 3600;
|
||||||
fastcgi_send_timeout 3600;
|
fastcgi_send_timeout 3600;
|
||||||
fastcgi_param HTTPS $fastcgi_https;
|
fastcgi_param HTTPS $fastcgi_https;
|
||||||
{{php_fpm_listener}}
|
fastcgi_pass 127.0.0.1:{{php_fpm_port}};
|
||||||
{{php_settings}}
|
fastcgi_param PHP_VALUE "{{php_settings}}";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
|
||||||
|
|||||||
Reference in New Issue
Block a user