zoukankan      html  css  js  c++  java
  • 部署laravel 到linux环境

    server {
            listen       80;
            server_name test.genplahotel.com;
            index index.html index.htm index.php;
            root /home/wwwroot/genplahotel/public;
            location / {
              try_files $uri $uri/ /index.php?$query_string;
            #       try_files $uri $uri/index.php?$query_string;
            #       if ( $http_user_agent !~* "(Android|iPhone|Windows Phone|UC|Kindle)" ){
            #               rewrite ^/(.*)$ http://www.net-tactic.com$uri redirect;
            #       }
    
            }
              location ~ .*.(php|php5|php7)?$
            {
                    #fastcgi_pass  unix:/tmp/php-cgi.sock;
                    fastcgi_pass  127.0.0.1:9001;
                    fastcgi_index index.php;
                    #include fastcgi.conf;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   #fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
                    include fastcgi_params;
                   #fastcgi_param  PHP_VALUE  "open_basedir=/home/wwwroot/genplahotel/:/tmp/:/proc/";
    
            }
            location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
            {
                    expires 30d;
            }
            location ~ .*.(js|css)?$
            {
                    expires 1h;
            }
            #α¾²Ì¬¹æÔò
           # include /alidata/server/nginx/conf/rewrite/default.conf;
            access_log  /home/wwwlogs/access.log;
    }

    1、

     注意点

  • 相关阅读:
    Contains Duplicate
    Valid Anagram
    Invert Binary Tree
    Same Tree
    代理模式——java设计模式
    单例模式——java设计模式
    关于春招自己感到很失落这件事
    Collections.sort()中的mergeSort归并排序
    腾讯云搭建日志收集系统
    centos7 mysql
  • 原文地址:https://www.cnblogs.com/sz-xioabai/p/12653756.html
Copyright © 2011-2022 走看看