<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                nginx.conf的http下配置 ``` include vhosts/*.conf; ``` 然后在vhosts文件夾下的xxx.conf文件下配置各個網站的server ### **0localhost_80.conf** ``` server { listen 80; server_name localhost; root "D:/PRO/phpstudy_pro/WWW"; location / { index index.php index.html; error_page 400 /error/400.html; error_page 403 /error/403.html; error_page 404 /error/404.html; error_page 500 /error/500.html; error_page 501 /error/501.html; error_page 502 /error/502.html; error_page 503 /error/503.html; error_page 504 /error/504.html; error_page 505 /error/505.html; error_page 506 /error/506.html; error_page 507 /error/507.html; error_page 509 /error/509.html; error_page 510 /error/510.html; autoindex off; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } } ``` ### **www.chat.com_80.conf** ``` server { listen 80; server_name www.chat.com; root "D:/PRO/phpstudy_pro/WWW/www.chat.com/public"; location / { index index.php index.html error/index.html; error_page 400 /error/400.html; error_page 403 /error/403.html; error_page 404 /error/404.html; error_page 500 /error/500.html; error_page 501 /error/501.html; error_page 502 /error/502.html; error_page 503 /error/503.html; error_page 504 /error/504.html; error_page 505 /error/505.html; error_page 506 /error/506.html; error_page 507 /error/507.html; error_page 509 /error/509.html; error_page 510 /error/510.html; include D:/PRO/phpstudy_pro/WWW/www.chat.com/public/nginx.htaccess; autoindex off; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } } ``` ## **額外配置去掉入口文件index.php** D:/PRO/phpstudy_pro/WWW/www.chat.com/public/nginx.htaccess ``` if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } ``` ``` #檢查請求的文件或目錄是否存在,如果不存在,則將請求重寫到 index.php,并將原始 URL 路徑作為 s 參數傳遞給 index.php #例如: #請求的 URL:http://www.paiadmin.com/admin/login/login #重寫后的 URL:http://www.paiadmin.com/index.php?s=admin/login/login location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } #if 指令在 Nginx 中性能較差,尤其是在高并發場景下,建議使用 try_files 指令替代 if,因為 try_files 的性能更好。 #last 和 break 同時使用是多余的,因為 last 已經會停止處理當前的重寫規則 #解釋: #try_files:按順序檢查文件或目錄是否存在,如果都不存在,則重寫到最后一個參數。 #$uri:檢查請求的文件是否存在。 #$uri/:檢查請求的目錄是否存在。 #/index.php?s=$uri:如果文件和目錄都不存在,則將請求重寫到 index.php,并將原始 URL 路徑作為 s 參數。 location / { try_files $uri $uri/ /index.php?s=$uri; } #location / { # if (!-e $request_filename) { # rewrite ^(.*)$ /index.php?s=/$1 last; # } #} ``` ### **www.stp6.com_80.conf** ``` server { listen 80; server_name www.stp6.com; root "D:/PRO/phpstudy_pro/WWW/www.stp6.com/public"; location / { index index.php index.html error/index.html; error_page 400 /error/400.html; error_page 403 /error/403.html; error_page 404 /error/404.html; error_page 500 /error/500.html; error_page 501 /error/501.html; error_page 502 /error/502.html; error_page 503 /error/503.html; error_page 504 /error/504.html; error_page 505 /error/505.html; error_page 506 /error/506.html; error_page 507 /error/507.html; error_page 509 /error/509.html; error_page 510 /error/510.html; autoindex off; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } } ```
                  <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>

                              哎呀哎呀视频在线观看