我们公司有几十万的产品型号,每个产品型号都对应一个小型宣传网站,都是静态页,目录结构:
/www/{ID}
|--js/
|--css/
|--images/
|--index.html
|--1.html
|--2.html
|--3.html
根目录是/www,{ID}这个是产品型号的ID;
我现在nginx做的配置是:
server {
listen 80;
server_name p.abc.com;
index index.html index.htm index.jsp;
root /www;
location / {
}
}
我觉得是不合理的,图片页面也没有分出来。
我们的产品型号是有一个类型属性的,每个类型下面会有很多产品型号,能否通过二级域名来做分离呢?
http://type1.abc.com/{id}
http://type2.abc.com/{id}
http://type2.abc.com/{id}
......
谁能帮我设计一个比较合理的解决方案?