How to configure Tomcat7 to the processing host type *

Good day!

At the moment, in server.xml Tomcat the following settings host:

<host name="" ...>...</host>

And, accordingly, the application processes only host.ruand I need it processed all third level domains(,,

How can I do that?
September 19th 19 at 12:55
1 answer
September 19th 19 at 12:57
Nginx+proxy_pass to Tomcat
Yes, thank you, nginx is. I think this option would work. But I had another question: if all will be well with the session? For ideas, tomkat will have different hosts to create different jsessionid. - candida_Jaco commented on September 19th 19 at 13:00
You need one session for all subdomains?
In web.xml if you are using servlet 3 add

and everything will be OK.
If not make server.xml so
<context ... sessioncookiepath="/"></context> - reuben.Bartolett commented on September 19th 19 at 13:03
: Yes, all right. Servlet 3. I'll try to do so, thanks! - candida_Jaco commented on September 19th 19 at 13:06

Find more questions by tags JavaTomcatUbuntu Server