开发者

dynamic subdomains and struts2

I want to create dynamic subdomains on my开发者_JAVA百科 site. I know how to create it using apache2 mod_rewrite (convert urls like sub.domain.com to domain.com/sub/). But I have one problem: I don't know how my web application learn about this subdomain.

How I can do this using Struts2?


You can pass it via an http header, configured at mod_rewrite or nginx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜