当前位置:网站首页>[bug] there is an error uploading the picture (413 request entity too large)
[bug] there is an error uploading the picture (413 request entity too large)
2022-06-27 19:56:00 【The Nuggets said】
solve
nginx Upload file size is limited , Need to adjust nginx To configure .nginx Modify upload file size limit client_max_body_size 1000M;
nginx Modify upload file size limit , Examples are as follows :
server {
listen 80;
server_name localhost;
client_max_body_size 1000M;
location /web {
alias D:/web;
index main.html;
}
location /web/service {
proxy_pass http://HOST/service;
}
location /web/service/upload {
proxy_pass http://HOST/upload;
}
}
additional
Show reality IP To configure
worker_processes 1;
error_log stderr notice;
events {
worker_connections 1024;
}
http {
include mime.types;
variables_hash_max_size 1024;
access_log off;
#real_ip_header X-Real-IP;
charset utf-8;
gzip on;
gzip_min_length 4k;
gzip_comp_level 5;
gzip_buffers 4 16k;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript application/json;
gzip_vary on;
client_max_body_size 30M;
# development environment
server {
listen 2040;
location / {
#add_header 'Referrer-Policy' 'no-referrer-when-downgrade';
proxy_set_header X-Real-IP $remote_addr; # Store the user's real ip
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Every time you go through a reverse proxy , Will reverse proxy IP Store in X-Forwarded-For in
proxy_set_header Host $host;
proxy_pass http://localhost:17050;
}
location ~/api/form {
proxy_set_header Host $host;
proxy_pass http://localhost:17022;
}
location ~/api/ {
#proxy_set_header Host $host;
proxy_pass http://localhost:17042;
}
}
}
边栏推荐
- Is it safe to buy stocks and open an account on the account opening link of the securities manager? Ask the great God for help
- Memoirs of actual combat: breaking the border from webshell
- 散列表(Hash)-复习
- 使用MySqlBulkLoader批量插入数据
- Garbage collector driving everything -- G1
- 一种朴素的消失点计算方法
- Making single test so simple -- initial experience of Spock framework
- OpenSSL client programming: SSL session failure caused by an obscure function
- Adding, deleting, modifying and querying MySQL tables (basic)
- 循环遍历及函数基础知识
猜你喜欢
随机推荐
Labelimg usage guide
binder hwbinder vndbinder
华大单片机KEIL报错_WEAK的解决方案
Mathematical derivation from perceptron to feedforward neural network
Photoshop layer related concepts layercomp layers move rotate duplicate layer compound layer
散列表(Hash)-复习
1025 PAT Ranking
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
券商经理的开户二维码开户买股票安全吗?有谁知道啊
Making single test so simple -- initial experience of Spock framework
Longitude and latitude analysis
从指令交读掌握函数调用堆栈详细过程
Pointers and structs
高收益银行理财产品在哪里看?
Blink SQL内置函数大全
现在网上买股票开户身份证信息安全吗?
作用域-Number和String的常用Api(方法)
redis集群系列三
《第五项修炼》(The Fifth Discipline):学习型组织的艺术与实践
基于STM32F103ZET6库函数按键输入实验








