美文网首页
nginx 配置

nginx 配置

作者: Martain | 来源:发表于2018-08-14 17:57 被阅读13次
    server{
    
        listen 8088;
        server_name Lar;
        root /var/www/Lar/public/;
        index index.html index.htm index.php;
        location / {
                try_files $uri $uri/ /index.php?$query_string;
            }
    
         location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include        fastcgi_params;
            }
    
    }
    

    相关文章

      网友评论

          本文标题:nginx 配置

          本文链接:https://www.haomeiwen.com/subject/alovbftx.html