I'm developing a web application using SpringBoot, and other technologies. This application will be unique, that is, an application must serve multiple users (clients).
Each user will have a page, which is composed as follows: www.meusite.com.br/joao_da_silva
The domain of the site can be: mysite.com and what is after the bar is his user name (in the case joao_da_silva ).
So long, I've developed the application, and it's working fine. My question is this:
Is the client having an 'x' domain (example: www.joaodasilva.com.br) and redirecting to www.mysite.com/joao_da_silva without changing the URL?
I've seen that goDaddy has a masquerading feature, but it gets an HTML with iframe, and slow, it loses all the responsiveness of the site, since goDaddy's masking uses HTML 4. This does not help me, because already tested.
As I use tomcat server for other applications I have, I've already used some kind of virtual host, changing the server.xml file and adding a Host tag, I can point a domain to a folder (application), however this does not I need to point several client domains to the same application, changing just the endpoint (which is the client name), if I put 2 host to the same application, tomcat goes into loop, not to deploy. Maybe I did the configuration wrongly, but so far I have not found a solution.
What I changed in server.xml looks like this:
<Host name="joaodasilva.com.br" appBase="MEUAPP" autoDeploy="true" unpackWARs="true">
<Alias>www.joaodasilva.com.br</Alias>
<Context path="" docBase="/var/lib/tomcat7/webapps/MEUAPP/joao_da_silva" debug="0"/>
</Host>
<Host name="mariapaula.com" appBase="MEUAPP" autoDeploy="true" unpackWARs="true">
<Alias>www.mariapaula.com</Alias>
<Context path="" docBase="/var/lib/tomcat7/webapps/MEUAPP/maria_de_paula" debug="0"/>
</Host>
What I want to do is when I access the domain: www.joaodasilva.com.br point to www.meusite.com.br/joao_da_silva (site: meusite.com.br endpoint: joao_da_silva) without changing the URL