Welcome! Log In Create A New Profile

Advanced

upload_progress module не работает

May 04, 2011 09:40AM
Здравствуйте, не могу заставить работа upload_progress module с nginx, реализацию на html+javascript полностью взял с официального сайта, т.е. там ошибки быть не может. Опишу процесс загрузки: открываю страницу, вижу пустой прогрессбар, выбираю файл, жму "submit", далее перебрасывает на страницу с текстом: {"name":"","size":0,"type":null,"error":null}, хотя должен был по идее прогрессбар отрисовываться.


---nginx.conf

user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;
client_max_body_size 1024m;
access_log logs/access.log;

sendfile on;

keepalive_timeout 65;

gzip on;
gzip_proxied any;
gzip_min_length 1100;
gzip_http_version 1.0;
gzip_comp_level 9;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

server {
listen 80;
server_name localhost;
access_log logs/host.access.log;

location / {
root /var/www/;
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_connect_timeout 60;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_redirect default;
index index.html index.htm;
}

location ~* \.(jpg|jpeg|gif|png|css|js|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx) {
root /var/www/socnetwork;
index index.html index.php;
access_log off;
expires 30d;
}
}
Subject Author Posted

upload_progress module не работает

art2123 May 04, 2011 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready