代码女神_个人页

个人头像照片 代码女神
0
6
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2015-08-07

    nginx日志中如何获取用户的真实IP

    Renginx日志中如何获取用户的真实IP

    nginx.conf内容如下:




    user  www www;
    worker_processes auto;
    error_log  /home/wwwroot/index/log/nginx_error.log  crit;
    pid  /usr/local/nginx/logs/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;
        server_names_hash_bucket_size 128;
        client_header_buffer_size 16k;
        large_client_header_buffers 4 4k;
        client_max_body_size 1024m;


        sendfile on;
        tcp_nopush on;


        keepalive_timeout 60 60;


        fastcgi_connect_timeout 600;
        fastcgi_send_timeout 600;
        fastcgi_read_timeout 600;
        fastcgi_buffer_size 256k;
        fastcgi_buffers 16 256k;
        fastcgi_busy_buffers_size 512k;
        fastcgi_temp_file_write_size 512k;
        fastcgi_intercept_errors on;


        tcp_nodelay on;
        server_tokens off;
        gzip             on;
        gzip_min_length  1000;
        gzip_proxied     expired no-cache no-store private auth;
        gzip_types       text/plain text/css text/xml text/javascript application/x-javascript application/xml application/rss+xml application/xhtml+xml application/atom_xml;
        gzip_disable "MSIE [1-6].(?!.*SV1)";
        log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
        '$status $body_bytes_sent "$http_referer" '
        '"$http_user_agent" $http_x_forwarded_for';


        include vhost/*.conf;
        server
        {
            listen  8888;
            server_name 105.29.244.78;
            index index.html index.htm index.php;
            root  /home/wwwroot/index/web;
             if ( $host != '105.29.244.78' ) { return 400; }
            fastcgi_buffer_size 4k;
                    fastcgi_buffers 8 4k;
                    fastcgi_busy_buffers_size 4k;
                    gzip off;


            location ~ .*\.php$
            {
                fastcgi_pass unix:/tmp/php-cgi.sock;
                fastcgi_index index.php;
                include fcgi.conf;
            }


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


            location ~ .*\.(js|css)?$
            {
                expires      12h;
            }
        
            access_log  /home/wwwroot/index/log/access.log combined;
            error_log   /home/wwwroot/index/log/error.log crit;
        }


        server
        {
            listen 80 default;
            return 400;
        }
    }

    -------------------------

    Renginx日志中如何获取用户的真实IP
    不要沉了,知道的人回复下咯,谢谢!
    踩0 评论0
  • 提交了问题 2015-08-07

    nginx日志中如何获取用户的真实IP

  • 回答了问题 2015-08-07

    用了CDN字体加载不了求好心人帮忙急

    Re用了CDN字体加载不了求好心人帮忙急
    重新排版
    踩0 评论0
  • 回答了问题 2015-08-07

    谁在用香港主机的,速度怎么样?急

    Re谁在用香港主机的,速度怎么样?急
    香港速度国内访问不是很好吧
    踩0 评论0
  • 回答了问题 2015-07-30

    iptables禁止IP无效

    Reiptables禁止IP无效


    我试了禁止我本地的IP,接着ssh断开,但是网站所有页面还是能正常访问。

    -------------------------

    Reiptables禁止IP无效
    有大婶吗?

    -------------------------

    回5楼mislost的帖子
    禁止了它还能继续访问,那这个禁止IP不是没效果吗?
    踩0 评论0
  • 提交了问题 2015-07-30

    iptables禁止IP无效

正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息