zoukankan      html  css  js  c++  java
  • nginx完美支持tp框架

    nginx完美支持tp框架


    server {
    listen 80;
    server_name mit.520m.com.cn;
    access_log /data/wwwlogs/mit.520m.com.cn_nginx.log combined;
    index index.html index.htm index.php;
    #include /usr/local/nginx/conf/wordpress.conf;
    root /data/wwwroot/peita2.0;

    location / {
    if (!-e $request_filename) {
    rewrite ^/(.*)$ /index.php/$1 last;
    break;
    }
    }
    location ~ .php {
    fastcgi_pass unix:/dev/shm/php-cgi.sock;
    fastcgi_index index.php;
    include fastcgi_params;
    set $real_script_name $fastcgi_script_name;
    if ($fastcgi_script_name ~ "^(.+?.php)(/.+)$") {
    set $real_script_name $1;
    set $path_info $2;
    }
    fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
    fastcgi_param SCRIPT_NAME $real_script_name;
    fastcgi_param PATH_INFO $path_info;
    }
    }

  • 相关阅读:
    2021.1.11
    2021.1.10(每周总结)
    2021.1.9
    2021.1.8
    2021.1.7
    构建之法阅读笔记01
    [java] XML DTD XSD
    详解 泛型 与 自动拆装箱
    详解 正则表达式
    详解 LinkedHashMap
  • 原文地址:https://www.cnblogs.com/findher/p/10610013.html
Copyright © 2011-2022 走看看