頁面跳轉(二)

接着頁面跳轉(一)。現在不希望通過“中間頁”跳轉,在nginx 中通過 root+index 實現。

具體如下:

nginx 配置如下:

  location / {
        root /home/cic/cic-kite-site/html;
        index index.html;
    }

  location ~ ^/(css|js|img|images|video)/ {
        root /home/cic/cic-kite-site;
   }

這樣輸入 http://mydomain 就可以直接看到期望的效果(cic-kite-site/html/index.html)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章