添加留言
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]
               

 
纠结
2011-5-28 23:27
访问http://127.0.0.1/phpmyadmin/  页面出错是怎么回事
fjw
2011-5-27 08:52
接下
rewrite ^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$  /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;
rewrite ^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*).html$                            /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&




下面还有发不上去了,过滤了特殊字符
fjw
2011-5-27 08:48
接下
}
        if ($request_uri ~* "[+|(%20)]union[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]and[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]exec[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]select[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]insert[+|(%20)]") {
                return 444;
        }  
        if ($request_uri ~* "[+|(%20)]delete[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]update[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]create[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]alter[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]drop[+|(%20)]") {
                return 444;
        }
        if ($request_uri ~* "[+|(%20)]show[+|(%20)]") {
                return 444;
        }


   #rewrite ^undefined$        index.html
rewrite ^/index.html$    /index.php last;
rewrite ^/category$      /index.php last;
#rewrite ^search.php$ index.html last;

# access any object by its numeric identifier
rewrite ^/feed-c([0-9]+).xml$       /feed.php?cat=$1 last;
rewrite ^/feed-b([0-9]+).xml$       /feed.php?brand=$1 last;
rewrite ^/feed.xml$                 /feed.php last;
fjw
2011-5-27 08:45
张哥!
   打开网站会有些图片不能显示,按F5刷新后全可以出来,再按F5又会有一些图片不出来,再按又出来了。。。。。 这是web服务器配置文件,麻烦你们帮忙看看。
    
   user  daemon daemon;

worker_processes 8;

error_log  /usr/local/service/nginx/logs/nginx_error.log  crit;

pid        /usr/local/service/nginx/nginx.pid;

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

events
{
  use epoll;
  worker_connections 51200;
}

http
{
  include       mime.types;
  default_type  application/octet-stream;

  #charset  gb2312;
      
  server_names_hash_bucket_size 128;
  client_header_buffer_size 32k;
  large_client_header_buffers 4 32k;
  client_max_body_size 8m;
      
  sendfile on;
  tcp_nopush     on;

  keepalive_timeout 15;

  tcp_nodelay on;

  fastcgi_connect_timeout 50;
  fastcgi_send_timeout 300;
  fastcgi_read_timeout 300;
  fastcgi_buffer_size 64k;
  fastcgi_buffers 4 64k;
  fastcgi_busy_buffers_size 128k;
  fastcgi_temp_file_write_size 128k;
  fastcgi_intercept_errors on;
  gzip on;
  gzip_min_length  1k;
  gzip_buffers     4 16k;
  gzip_http_version 1.0;
  gzip_comp_level 2;
  gzip_types       text/plain application/x-javascript text/css application/xml;
  gzip_vary on;
  limit_zone slimits $binary_remote_addr 5m;
  limit_conn slimits 5;
  #limit_zone  crawler  $binary_remote_addr  10m;


  server
  {
    listen       80;
    server_name  www.66.com
    index index.html index.php;
    #rewrite ^/* /aa.html break;
    root  /web/ecshop;
    error_page 404 = /404.html;
if ( $fastcgi_script_name ~ \..*\/.*php )
{
return 403;
}
#if ($http_user_agent ~ Baiduspider) {
#return 403;
#}
if ($request_uri ~* "(cost\()|(concat\()") {
                return 444;
dustlost
2011-5-26 16:52
问个问题,域名从新网转入godaddy时,域名解析设置怎么办? 会不会出现网站几天不能解析?
恩基人
2011-5-26 14:18
unhappy这几天网站上午访问好像有点问题,打不开:)
water197
2011-5-25 14:31
请教一个问题:我想做一个比较大型的网站,从前端到后端,希望大哥给个方案,一直都是做小型的网站,现在有一个大型的网站部署,希望多帮忙,包括服务器配置,网络架构这方面给点建议,帮助下我。谢谢了
water197
2011-5-25 14:29
支持你
stewart
2011-5-25 13:41
工信部拟推境外域名白名单制度 未备案无法访问 #网易科技#

怎么搞啊大哥。。。
zztianxie
2011-5-24 12:02
张兄,我刚在windows7下装了一下,提示apache启动失败,请检查相关配置文件,mysql启动失败,请检查相关配置文件

说明:没有写日志文件,端口没有被占用
分页: 2314/2445 第一页 上页 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 下页 最后页