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;

                  }

     

     

         }

  • 相关阅读:
    创建user keywords
    robotframework中list和dict variables
    安装sshlibrary库报错:Could not find a version that satisfies the requirement
    【转】用U盘制作启动盘后空间变小的恢复方法
    docker "exec format error"
    window cmd 设置IP,关闭防火墙,开启远程桌面
    Linux iptables
    python logging 模块
    docker 命令
    python xmlrpc入门
  • 原文地址:https://www.cnblogs.com/phplhs/p/5548106.html
Copyright © 2011-2022 走看看