美文网首页
lnmp之nginx配置文件

lnmp之nginx配置文件

作者: zhaoyanping | 来源:发表于2020-04-04 12:49 被阅读0次
server {
        listen       80;
        server_name  myhost.cn;
 
        location / {
            root   /User/Mac/www/myhost.cn;
            index  index.html index.htm index.php;
            if ( !-e $request_filename ) {
                rewrite ^/(.*)? /index.php?/$1 last;
                break;
            }
        }
 
        location ~ \.php$ {
            root /User/Mac/www/myhost.cn;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
 
        error_log /www/logs/myhost.cn_error.log;
        access_log /www/logs/myhost.cn_access.log main;
}

相关文章

  • lnmp之nginx配置文件

  • 2018-04-06

    说明 主nginx服务 每个网站一个单独的lnmp容器,通过本容器中的nginx进行代理转发 nginx配置文件指...

  • lnmp一键安装运行tp5

    nginx配置文件 防跨目录设置 LNMP 1.1及之前的版本使用php.ini里面,open_basedir设置...

  • LNMP的安装及配置

    LNMP LNMP是四个单词的首字母合称,Linux+Nginx+MySQL+PHP。 安装Nginx nginx...

  • LNMP基本架构

    介绍LNMP nginx+mysql+php lnmp最常见的架构 L linux --系统平台N nginx ...

  • Archlinux 下安装itop 和 glpi

    安装lnmp 配置php 修改的内容 配置php-fpm 配置nginx 内容 新建网站的配置文件 内容如下: 配...

  • 小知识

    LNMP LNMP = Linux + Nginx + Mysql + PHP LAMP LAMP = Linux...

  • 部署LNMP

    一.LNMP简介 1.LNMP的组成 LNMP分别代表Linux、 Nginx、MySQL和PHP。 2.LNMP...

  • 折腾LNMP:mongoDB的php扩展

    前事提要:折腾LNMP: Nginx + thinkphp5折腾LNMP:mongoDB折腾LNMP:robo 3...

  • LNMP图片防盗链

    LNMP图片防盗链 Nginx 服务器不支持.htaccess,所以只好通过修改虚拟主机配置文件来实现了。 编辑图...

网友评论

      本文标题:lnmp之nginx配置文件

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