Original link: https://vien.tech/article/138 Preface I used Laravel to make a blog that supports markdown (a side note: it is free and open source, welcome to use VienBlog), and supports file upload. Then when uploading files, I found that files larger than 1M failed to upload because Nginx limits the size of uploaded files. I just need to modify the default upload file size limit of Nginx. Here’s how: We find the Nginx configuration file nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful You can see that the print result is in vim /etc/nginx/nginx.conf Add [...] http { [...] client_max_body_size 10m; [...] } [...] Reload configuration or restart nginx service nginx reload or service nginx restart Congratulations, Coca-Cola, you can do whatever you want. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed explanation of MySQL syntax, special symbols and regular expressions
>>: How to start a Vue.js project
Sometimes we may need to operate servers in batch...
1. Unzip the downloaded file as shown below . 2. ...
Dynamically implement a simple secondary menu Whe...
Table of contents Preface Target first step: Step...
Table of contents Shallow copy Deep Copy Replenis...
Preface In this article, we will use Docker to bu...
Table of contents 1. Overview 2. Use Keepalived t...
Preface I have been busy developing a cold chain ...
The progress bar is not smooth I believe that mos...
"Tik Tok" is also very popular and is s...
Table of contents 1. Block scope 1.1. let replace...
front end css3,filter can not only achieve the gr...
When using nginx as a reverse proxy, you can simp...
The principle is to call the window.print() metho...
mysql row to column, column to row The sentence i...