Welcome! Log In Create A New Profile

Advanced

Uploaded file type is not supported.

Posted by ealexey 
Uploaded file type is not supported.
August 17, 2011 10:51AM
Привет всем подскжите пожалуйста Только поставил nginx Вроде сконфигурировал Получаю эту ошибку при загрузке аватара (и png, jpg)
"Uploaded file type is not supported"
Есть сервер debian, joomla, apache 2.2, nginx 0.6 (из debian), php как fcgi_mod, safe_mod on,
В бекенде joomlы через медиаменеджер изображения грузятся в папку а через сайт- нет

nginx.conf
http {
# include /etc/nginx/mime.types;
include mime.types;
default_type application/octet-stream;
client_max_body_size 4M;
client_body_buffer_size 128k;

log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';

log_format download '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$http_range" "$sent_http_content_range"';

tcp_nodelay on;

limit_zone lconn $binary_remote_addr 10m;

client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
# proxy_read_timeout 10m;
# proxy_connect_timeout 75;
# proxy_send_timeout 10m;
# connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 4 4k;
# request_pool_size 4k;
sendfile on;
tcp_nopush on;

keepalive_timeout 3m;

gzip on;
gzip_comp_level 3;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

##include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
include /var/www/vhosts/*/conf/nginx.conf;
##include webmail.conf;

ignore_invalid_headers on;
resolver 127.0.0.1;

server {
listen 80;
server_name ИМЯ_СЕРВ;
##localhost;
limit_conn lconn 3;

location / {
root /var/www/vhosts;
index index.php index.html index.htm;

# Разруливаем статику и динамку, смотрите описание ниже в этой статье!
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|bmp|swf|js)$ {
root /var/www/vhosts/*/httpdocs;
}

location ~ /\.ht {
deny all;
}


В proxy.conf:

proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
open_file_cache max=1024 inactive=600s;
open_file_cache_valid 2000s;
open_file_cache_min_uses 1;
open_file_cache_errors on;

В /var/www/vhosts/сайт/conf/nginx.conf

server {
listen 80;
server_name ИМЯ;

location / {
proxy_pass http://www.САЙТ:8080$request_uri;
include /etc/nginx/proxy.conf;
}

location ~* ^.+\.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|ico|swf)$ {
root /var/www/vhosts/САЙТ/httpdocs;
expires 7d;
}
}


В htacces:
RewriteEngine On
# RewriteBase /
и стандартные правила от Joomlы

В joomle->Конфигурация ->SEO установки все включено
Стоит компонент SEF - отключил

Спасибо заранее!



Edited 1 time(s). Last edit at 08/17/2011 10:59AM by ealexey.
Re: Uploaded file type is not supported.
August 17, 2011 12:37PM
Никто не скажет? Вообще странно На другом сайте через другой компонент я загрузил изображение без проблем
Где копать?
Прочитал чтопо умолчанию upload progress module, upload module. и upstream fair module. не включены, а загрузка идет
Спасибо
Re: Uploaded file type is not supported.
August 17, 2011 02:11PM
Дело было не nginx В библиотеке imagick Удалил - все работает. то ли недоконфигурировано было, то ли у компонента проблемы с ним
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 191
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