<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 啟動多個 HTTP 服務器 框架中的 `HTTP` 模塊中都有集成一個單獨的 `mix-httpd` 服務器,由于要同時啟動多個,所以需要配置不同的端口,然后給每個服務都設置對應的 `Nginx` 代理。 ### 第一步: 修改每一個 `mix-httpd` 的端口不重復,配置文件路徑: ~~~txt apps/[HTTP模塊]/config/httpd.php ~~~ 然后啟動全部的 `mix-httpd`。 >[danger] 修改 [ServiceCommand](https://github.com/mix-php/mix/blob/v1/apps/httpd/commands/ServiceCommand.php#L43) 的 pid 文件路徑不重復 ### 第二步: 為每個 `mix-httpd` 配置 Nginx 代理。 ~~~shell server { server_name my.test.com; listen 80; root /data/mixphp/apps/my/public/; index index.html; location = / { rewrite ^(.*)$ /index last; } location / { proxy_http_version 1.1; proxy_set_header Connection "keep-alive"; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; if (!-e $request_filename) { proxy_pass http://127.0.0.1:9501; } } } server { server_name shop.test.com; listen 80; root /data/mixphp/apps/shop/public/; index index.html; location = / { rewrite ^(.*)$ /index last; } location / { proxy_http_version 1.1; proxy_set_header Connection "keep-alive"; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; if (!-e $request_filename) { proxy_pass http://127.0.0.1:9511; } } } ~~~ ### 第三步: 重新啟動 nginx 即可。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看