开发者

dynamic subdomains and struts2

开发者 https://www.devze.com 2022-12-21 09:07 出处:网络
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

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

精彩评论

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

关注公众号