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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 實現虛擬主機 #### Step 1:準備工作 ~~~ # ifconfig eth0:0 192.168.111.20 ~~~ 1. 建立兩個站點目錄 ~~~ # mkdir /website1 # mkdir /website2 ~~~ 2. 建立兩個存放日志的目錄 ~~~ # mkdir /var/log/nginx/website1 # mkdir /var/log/nginx/website2 ~~~ 3. 創建兩個測試頁 ~~~ # echo "This is website1" >/website1/index.html # echo "This is website2" >/website2/index.html ~~~ #### Step 2:修改配置文件 原有的配置文件中默認有一個server節點,修改一下,然后再添加一個server節點 ~~~ server { listen 192.168.111.10:80; server_name localhost; #charset koi8-r; access_log /var/log/nginx/website1/access.log; error_log /var/log/nginx/website1/error.log; location / { root /website1; index index.html index.htm; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } server { listen 192.168.111.20:80; server_name localhost; #charset koi8-r; access_log /var/log/nginx/website2/access.log; error_log /var/log/nginx/website2/error.log; location / { root /website2; index index.html index.htm; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } ~~~ 此文件在Nginx安裝目錄下的conf里面的nginx.conf里面修改 #### Step 3:使用 ./nginx -s reload重新裝在配置 在終端里面進入到nginx目錄下的sbin,然后使用: `./nginx -s reload` 命令重載。 * * * * * https://www.cnblogs.com/Brad-Lee/p/6258693.html
                  <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>

                              哎呀哎呀视频在线观看