接着頁面跳轉(一)。現在不希望通過“中間頁”跳轉,在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)