摘要: 在nginx.conf中添加如下。 client_max_body_size 10m; 允许客户端请求的最大单文件字节数 client_body_buffer_size 128k; 缓冲区代理缓冲用户端请 求的最大字节数 所有配置: include /usr/share/nginx/modules/ 阅读全文
posted @ 2019-12-18 23:27 风许下的泪 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 在/etc/nginx/conf.d下新建一个laravel.conf文件,并编辑 写入如下文件即可 server { listen 80; server_name xxx; root "/www/public"; location / { index index.html index.htm in 阅读全文
posted @ 2019-12-18 23:24 风许下的泪 阅读(6410) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name xxxxx; root "/www/public"; location / { index index.html index.htm index.php; if ( f $request_filename/index.html){ re 阅读全文
posted @ 2019-12-18 23:22 风许下的泪 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name _; root /opt/h5/index/; location / { index index.html index.htm index.php; if ( f $request_filename/index.html){ rewri 阅读全文
posted @ 2019-12-18 23:20 风许下的泪 阅读(1398) 评论(0) 推荐(0) 编辑