0
我有在第三方托管站点注册的域名。 以下是我制订Tomcat子域重定向
abc.com -> xxx.xxx.xxx.xxx
www.abc.com -> xxx.xxx.xxx.xxx
a.abc.com -> xxx.xxx.xxx.xxx
b.abc.com -> xxx.xxx.xxx.xxx
的IP xxx.xxx.xxx.xxx
是在我家指着我的本地服务器的静态IP的A记录。它有一个运行在port 80
上的tomcat 7。 tomcat在其webapps文件夹中有以下内容。
1. ROOT
2. a
3. b
我如何路由,这样
abc.com opens webapps/ROOT/index.html
a.abc.com opens webapps/a/index.html
b.abc.com opens webapps/b/index.html
本地服务器上美分OS 6