接着页面跳转(一)。现在不希望通过“中间页”跳转,在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)