zoukankan      html  css  js  c++  java
  • nginx下面server配置

    haomeiv配置

    log_format  www.haomeiv.com  '$remote_addr - $remote_user [$time_local] "$request" '
                 '$status $body_bytes_sent "$http_referer" '
                 '"$http_user_agent" $http_x_forwarded_for';
    server
            {
                    listen       80;
                    server_name www.haomeiv.com haomeiv.com;
                    index index.html index.htm index.php default.html default.htm default.php;
                    root  /data/webroot/haomeiv;
    
                    include rewrite/www_haomeiv_com;
                    location ~ .*.(php|php5)?$
                            {
                                    try_files $uri =404;
                                    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  /data/logs/www.haomeiv.com.log    www.haomeiv.com;
                    error_log  /data/logs/www.haomeiv.com.error_log;
            }

    www.kong.cn配置

    server {
            include port.conf;
            server_name     www.kong.cn;
    
            root            /data/webroot/pm;
            include         rewrite/common.conf;
            include         rewrite/www.kong.cn_rewrite.conf;
            include         expires.conf;
            include         php_app.conf;
    
            access_log      /data/logs/nginx/access/curr/www.kong.cn.log  main;
            error_log       /data/logs/nginx/nginx_error_www.kong.cn.log;
    }
  • 相关阅读:
    题解:[HNOI2004]树的计数
    题解:砝码称重
    题解:子矩阵(NOIP2014普及组T4)
    题解:低价购买
    题解:倍增三连击orz
    题解:UVA10140 Prime Distance
    题解:[JSOI2007]建筑抢修
    模板:三分法
    Databinging数据绑定
    开始
  • 原文地址:https://www.cnblogs.com/wangkongming/p/4004416.html
Copyright © 2011-2022 走看看