i need to map a sub-domain (which is created by user, it means dynamically) to a same login page but i want to get the subdomain parameter through address bar
for exmaple
www.xyz.koopsz.com
www.abc.koopsz.com
www.mno.koopsz.com
these urls should redirect to the login page with paramater xyz or mno etc
- What i did
i thought i can map it in .htaccess www.koopsz.com/abc then will rewrite it to abc.koopsz.com
after so many effors i get to know that
apache tomcat doesn't support htaceess
now how can i solve this problem in Apache tomcat i read about virtual hosting but everytime when user add i have to make changes in server.xml i need it in a runtime. please help me out.