Log in

View Full Version : How to serve multiple sites:each site->unique domain/subdomain/folder in cms web app


anyaservices
Dec 21, 2012, 02:03 PM
I am working on a Java based content management system. Now, I want the same web app (deployed on Tomcat) to serve multiple websites-- with each site having its own domain/subdomain/folder.

Eg. Site 1= www.site1.com, site2= www.site2.com, site3= http://site3.mysite.com, site4= http://site4.mysite.com and site5= http://mysite.com/site5 and site6= http://mysite.com/site6

As you can see from above examples, eg1 & 2 --> multiple domains, eg3 and eg4 -> different subdomains while eg5 and eg6-> subfolders within same domain.

What kind of coding will I have to do to accomplish the above? Also what kind of DNS recors will I have to create for the same?

Thanks,
Arvind.