zoukankan      html  css  js  c++  java
  • nginx设置重写规则

    server

          {

                  listen       80;

                  server_name  www.test.com test.com;

     

                 charset utf-8;

     

                        root /Users/macbookpro/ky/test/www;

     

                              location / {

                        index index.html index.htm index.php index.shtml;

     

                        if (!-e $request_filename){

                            rewrite ^(.*)$ index.php?s=$1 last;

     

                        }

                  }

     

                   location ~ .php

                  {

     

                       fastcgi_pass    127.0.0.1:9000;

                       fastcgi_split_path_info ^(.+.php)(.*)$;

                       fastcgi_param PATH_INFO $fastcgi_path_info;

                       fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

                       fastcgi_param RUNTIME_ENVIROMENT "lihongsheng";

                       include         fastcgi_params;

                       fastcgi_connect_timeout 300;

                       fastcgi_send_timeout 300;

                       fastcgi_read_timeout 300;

                  }

     

     

         }

  • 相关阅读:
    Uva 1636 决斗
    数论初步
    Gym 100169A 最短路
    Uva 12169 不爽的裁判 模运算
    Uva 11582 巨大的斐波那契数 模运算
    Uva 10791 最小公倍数的最小和 唯一分解定理
    Uva 10375 选择与除法 唯一分解定理
    poj 3485 区间选点
    第二届团体程序设计天梯赛
    Uva 12657 双向链表
  • 原文地址:https://www.cnblogs.com/phplhs/p/5548106.html
Copyright © 2011-2022 走看看