zoukankan      html  css  js  c++  java
  • php语言下,配置nginx

    server {
    listen 80;
    server_name b.test.com;
    #罪恶的来源就是下面的一行
    root "D:phpStudyPHPTutorialWWWWWW est";
    location / {
    // 以下者三行是配置nginx以pathinfo形式访问
    if (!-e $request_filename){
    rewrite ^/(.*) /index.php last;
    }
    index index.html index.htm index.php;
    #autoindex on;
    }
    location ~ .php(.*)$ {
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
    include fastcgi_params;
    }
    }
    ————————————————
    版权声明:本文为CSDN博主「蜗牛使劲冲」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/wt1286331074/java/article/details/80970157

  • 相关阅读:
    代码管理模型概况
    循环链表
    队列

    链表
    java 2020-10-12T11:22:49.000+0800 字符串转换成正常时间格式
    动态数组
    mysql练习
    复杂度与LeetCode
    记一次带逗号的数字类型处理
  • 原文地址:https://www.cnblogs.com/xinyixuan/p/12626352.html
Copyright © 2011-2022 走看看