marcinkrk1
Programmer
Hello Everyone,
I have a question.
Is it possible to make Tomcat recognize a url from Apache request
and then choose correct Resources (database) from context.xml?
Maybe example be more clear.
I have a two VirtualHost in Apache on the server
example1.com.pl
example2.com.pl
there is also a Tomcat with one application on the same server
this application have two different Resources (database):
example1_database
example2_database
Is it a possible to Tomcat recognize the url and use the correct database?
request from example1.com.pl use example1_database
request from example2.com.pl use example2_database
thanks for a help
I have a question.
Is it possible to make Tomcat recognize a url from Apache request
and then choose correct Resources (database) from context.xml?
Maybe example be more clear.
I have a two VirtualHost in Apache on the server
example1.com.pl
example2.com.pl
there is also a Tomcat with one application on the same server
this application have two different Resources (database):
example1_database
example2_database
Is it a possible to Tomcat recognize the url and use the correct database?
request from example1.com.pl use example1_database
request from example2.com.pl use example2_database
thanks for a help