• nginx之fastcgi配置


    server {
        listen 80;
        default_type text/plain;
        server_name fpm.haosheng.vip;
        root www;
        location / {
            # Matches URLS `$_GET['_url']`
            try_files $uri $uri/ /index.php?_url=$uri&$args;
        }
    
        location ~ [^/].php(/|$) {
            fastcgi_split_path_info ^(.+?.php)(/.*)$;
            include fastcgi_params;
            fastcgi_pass 127.0.0.1:9000;
            if (!-f $document_root$fastcgi_script_name) {
                return 404;
            }
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
    
        location ~ /.ht {
            deny all;
        }
    
        location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
            expires       max;
            log_not_found off;
            access_log    off;
        }
    
        location ~ ^/fpm_status$ {
            rewrite ^/fpm_status$ /status break;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
            fastcgi_pass 127.0.0.1:9000;
        }
    }
  • 相关阅读:
    烦人的微软拼音
    android sdk manager 不能连接到https://dl-ssl.google.com
    js 截屏
    计算机的发展史
    python全栈课程内容
    内置函数
    mapfilter educe
    函数式编程->reduce
    函数式编程
    函数式编程->map
  • 原文地址:https://www.cnblogs.com/sanshuiqing/p/14558141.html
Copyright © 2020-2023  润新知