<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          dnmp精講二(NGINX與PHP實(shí)現(xiàn)通信配置)

          共 1948字,需瀏覽 4分鐘

           ·

          2021-09-17 01:58

          dnmp精講一(docker搭建與容器管理)

          第一講文檔地址:https://github.com/bruceqiq/code_study


          視頻素材:

          文檔地址:https://github.com/bruceqiq/code_study

          倉庫地址:https://github.com/bruceqiq/php_dnmp

          相關(guān)代碼:

          默認(rèn)服務(wù)

          一、 默認(rèn)dnmp環(huán)境下面存在一個localhost的配置。

          server {
              listen       80  default;
              server_name  localhost;
              root   /www/localhost;
              index  index.php index.html index.htm;
              location ~ \.php$ {
                  fastcgi_pass   php:9000;
                  include        fastcgi-php.conf;
                  include        fastcgi_params;
              }
          }

          二、 訪問默認(rèn)域名

          http://127.0.0.1

          配置虛擬域名

          一、 在conf.d目錄下面創(chuàng)建nginx配置文件。

          二、 添加NGINX配置。

          server {
            listen 80;
            server_name laravel8.com;
            root /www/laravel8/public;
            index index.php index.html;

            access_log  /var/log/nginx/nginx.laravel8.com.access.log  main;
            error_log  /var/log/nginx/nginx.laravel8.com.error.log  warn;

            location / {
              try_files $uri $uri/ /index.php?$query_string;
            }

            location ~ \.php$ {
                fastcgi_pass   php:9000;
                include        fastcgi-php.conf;
                include        fastcgi_params;
            }
          }


          瀏覽 112
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产成人无码精品亚洲 | 色色影院精品 | 国产欧美91av研究在线 | 爱爱视频三级黄色 | 国产三级网址 |