全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2912|回复: 6
打印 上一主题 下一主题

[nginx] 奇怪.无法上传附件!

[复制链接]
跳转到指定楼层
1#
发表于 2009-12-25 21:06:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
论坛无法上传附件,图片,种子,txt都无法上传
是不是下面配置错了,还是其他什么权限的?
  1. user  www www;

  2. worker_processes 1;

  3. error_log  /home/www/logs/nginx_error.log  crit;

  4. pid        /usr/local/nginx/logs/nginx.pid;

  5. #Specifies the value for maximum file descriptors that can be opened by this process.
  6. worker_rlimit_nofile 51200;

  7. events
  8.         {
  9.                 use epoll;
  10.                 worker_connections 51200;
  11.         }

  12. http
  13.         {
  14.                 include       mime.types;
  15.                 default_type  application/octet-stream;

  16.                 #charse  gb2312;

  17.                 server_names_hash_bucket_size 128;
  18.                 client_header_buffer_size 32k;
  19.                 large_client_header_buffers 4 32k;
  20.                 client_max_body_size 8m;

  21.                 sendfile on;
  22.                 tcp_nopush     on;

  23.                 keepalive_timeout 60;

  24.                 tcp_nodelay on;

  25.                 fastcgi_connect_timeout 300;
  26.                 fastcgi_send_timeout 300;
  27.                 fastcgi_read_timeout 300;
  28.                 fastcgi_buffer_size 64k;
  29.                 fastcgi_buffers 4 64k;
  30.                 fastcgi_busy_buffers_size 128k;
  31.                 fastcgi_temp_file_write_size 128k;

  32.                 gzip on;
  33.                 gzip_min_length  1k;
  34.                 gzip_buffers     4 16k;
  35.                 gzip_http_version 1.0;
  36.                 gzip_comp_level 2;
  37.                 gzip_types       text/plain application/x-javascript text/css application/xml;
  38.                 gzip_vary on;

  39.                 #limit_zone  crawler  $binary_remote_addr  10m;

  40. server
  41.         {
  42.                 listen       80;
  43.                 server_name www.dddxxx.com;
  44.                 index index.html index.htm index.php;
  45.                 root  /home/www;

  46.                 #limit_conn   crawler  20;

  47.                 #location /status {
  48.                 #stub_status        on;
  49.                 #access_log        off;
  50.                 #}

  51.                 location ~ .*\.(php|php5)?$
  52.                         {
  53.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  54.                                 #fastcgi_pass  127.0.0.1:9000;
  55.                                 fastcgi_index index.php;
  56.                                 include fcgi.conf;
  57.                         }

  58.                 location ~ .*\.(jpg|gif|png|bmp|swf)$
  59.                         {
  60.                                 expires      30d;
  61.                         }

  62.                 location ~ .*\.(js|css)?$
  63.                         {
  64.                                 expires      12h;
  65.                         }

  66.                 log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
  67.              '$status $body_bytes_sent "$http_referer" '
  68.              '"$http_user_agent" $http_x_forwarded_for';
  69.                 access_log  /home/www/logs/access.log  access;
  70.         }

  71. server
  72.         {
  73.                 listen  80;
  74.                 server_name  status.lnmp.org;

  75.                 location / {
  76.                         stub_status on;
  77.                         access_log   off;
  78.                 }
  79.         }
  80. }
复制代码

[ 本帖最后由 wian1314 于 2009-12-25 21:07 编辑 ]
2#
发表于 2009-12-25 21:09:56 | 只看该作者

回复 1# 的帖子

提示什么? 你是全新安装的还是转移过去的?
3#
 楼主| 发表于 2009-12-25 21:17:14 | 只看该作者
NT主机转移过去,没有任何提示,上传完了,如果是图显示X

[ 本帖最后由 wian1314 于 2009-12-25 21:18 编辑 ]
4#
发表于 2009-12-25 21:20:35 | 只看该作者
查看图片是否在服务器上面。。。

会不会上传附件的文件夹权限没设置???
5#
 楼主| 发表于 2009-12-25 21:30:55 | 只看该作者

回复 4# 的帖子

文件不在服务器里面,VPS的环境配置是licess
6#
发表于 2009-12-25 21:48:21 | 只看该作者
上传的东西是不是中文文件名?
7#
 楼主| 发表于 2009-12-25 21:56:45 | 只看该作者

回复 6# 的帖子

英文的.正在安装个全新的论坛试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-8 08:40 , Processed in 0.060315 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表