下载限制上游的大文件,发布文件

时间:2014-05-05 04:00:46

标签: php nginx download vps

在jumpstarter.io上 我有项目PHP 我希望通过HTTP [php]从服务器下载更大的下载文件  文件大小限制= 30 MB的帖子文件

我无法配置通常位于/etc/nginx/nginx.conf的nginx.conf文件的http {}: 和php.ini

可编辑:

NginX Configuration
  server {
       listen 0.0.0.0;
       root /var/www;
       index index.php index.html index.htm;

       location / { 
              try_files $uri $uri/ /index.php?$args;
       }
       location = /favicon.ico {
                log_not_found off;
                access_log off;
       }

       location = /robots.txt {
              allow all;
              log_not_found off;
              access_log off;
       }

      # location ~* \\.(js|css|png|jpg|jpeg|gif|ico)$ {
              #  expires 2w;
      # }



       location ~* \\.php$ {
                fastcgi_index index.php;
                fastcgi_pass unix:/var/run/php-fpm.sock;
                include /etc/nginx/fastcgi_params;
                fastcgi_param PHP_VALUE "
                display_errors=On
                display_startup_errors=On
                error_reporting=30719
                ";
       }


}

默认值:/etc/nginx/nginx.conf(无法编辑)

user http;
worker_processes 2;
pid /var/run/nginx.pid;
daemon off;
events {
    worker_connections 768;
}
http {
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    client_max_body_size 20m;
    client_body_buffer_size 128k;
    include /etc/nginx/mime.types;
    # logging
    access_log /var/log/nginx-access.log;
    error_log /var/log/nginx-error.log;
    # gzip
    gzip on;
    gzip_disable "msie6";
    # vhost
    include /etc/nginx/sites-enabled/*;
}

任何人都会帮助我。谢谢

0 个答案:

没有答案
相关问题