nginx:
client_max_body_size 1G;
php.ini:
upload_max_filesize = 1G
post_max_size = 1G
nginx:
client_max_body_size 1G;
php.ini:
upload_max_filesize = 1G
post_max_size = 1G
nginx restart failed:
nginx: [alert] OPENSSL_init_ssl() failed (SSL: error:12800067:DSO support routines::could not load the shared library:filename(/snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so): /snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so: cannot open shared object file: No such file or directory error:12800067:DSO support routines::could not load the shared library error:07880025:common libcrypto routines::reason(37):name=fips error:0700006D:configuration file routines::module initialization error:module=providers, value=provider_sect retcode=-1 )
解决办法:
nginx restart failed:
nginx: [alert] OPENSSL_init_ssl() failed (SSL: error:12800067:DSO support routines::could not load the shared library:filename(/snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so): /snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/fips.so: cannot open shared object file: No such file or directory error:12800067:DSO support routines::could not load the shared library error:07880025:common libcrypto routines::reason(37):name=fips error:0700006D:configuration file routines::module initialization error:module=providers, value=provider_sect retcode=-1 )
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[root@ooops ~]# find / -name fips.so
/usr/lib64/ossl-modules/fips.so
[root@ooops ~]# mount --bind /usr/lib64/ossl-modules/ /snap/certbot/4325/usr/lib/x86_64-linux-gnu/ossl-modules/
4325
注意替换为你的id
location / {
...
proxy_set_header Accept-Encoding "gzip";
...
proxy_pass ...;
}
nginx: worker process is shutting down,这个是nginx reload后可能会出现的,应该是继续处理未结束线程用的。
如果你的超时相关配置设置了很长时间,那么这个线程也会存在很长时间。
很多教程是改`client_body_buffer_size
`我觉得这样不太好,因为:
另外一种解决方案是:(关闭缓冲即可)
fastcgi_buffering off;
fastcgi_request_buffering off;
https://blog.csdn.net/m0_45406092/article/details/124713027
要点:
http { limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; ... server { ... location /search/ { limit_req zone=one burst=5; }
rate=1r/s; 表示 1请求每秒,也可以是 rate=30r/m;(30请求每分)
$binary_remote_addr 表示根据 ip v4或者 ip v6地址来限制流量
burst=5;表示突发请求不超过5个
server {
.....
location ~* .*\.(doc|txt|jar|zip|apk)(\?.*)?$ {
if ($request_uri ~* ^.*\/(.*)\.(doc|txt|jar|zip|apk)(\?name=([^&]+))$) {
add_header Content-Disposition "attachment;filename=$arg_name.$2";
}
}