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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 區別 共同點 :root和alias兩者都都是用來指定URI和磁盤文件的映射關系; 區別:root會將定義路徑與URI疊加;而alias只取定義路徑; ## root ``` root path //主機上某個路徑 ``` 上下文:在HTTP中使用會對所有server段生效,在server段使用會對所有location段生效; ``` http server location if ``` ## alias 和root不同,alias只能在location段使用; ``` alias path; ``` 上下文: ``` location ``` ## root示例 客戶端請求www.test.com/picture/1.jpg,則對應磁盤映射路徑 /opt/nginx/html/picture/picture/1.jpg ``` 也就是說使用root 請求的真實路徑是 rootpath + /uri ,也就是文件目錄 + URI / 后面的內容 ``` ``` location /picture { root /opt/nginx/html/picture; index index.html index.htm; } ``` ## alias示例 客戶端請求www.test.com/picture/1.jpg,則對應磁盤映射路徑 /opt/nginx/html/picture/1.jpg ``` 使用alias uri和文件路徑進行了疊加,其實就是alias + 請求的文件 ``` ``` location /picture { alias /opt/nginx/html/picture/; //最后面一定要加 "/" index index.html index.htm; } ``` ## 注意事項 1. 使用alias時,末尾一定要加 / 2. alias只能位于location塊中; 3. root可以用于多個塊中;
                  <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>

                              哎呀哎呀视频在线观看