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;
    }
  • 相关阅读:
    MySQL的事务和视图
    MySQL中的常用函数
    高级查询(一)
    街道管理系统
    深入.NET平台和C#编程的错题
    appium python下的API方法
    Charles 使用教程
    appium,iOS下,ios_predicate等定位方式
    Linux -常用命令
    python-列表以及相关函数认识
  • 原文地址:https://www.cnblogs.com/wangkongming/p/4004416.html
Copyright © 2011-2022 走看看