Which is the right implementation for a web-app, an admin and the default Tomcat pag
Hi all, since I am pretty newbie on deploying web applications and manage server I ask you which is the right (and secure) implementation if I would like to have (using Tomcat behind Apache):
- my application on http://x.x.x.x/ - my admin application on http://x.x.x.x:x - the default Tomcat page on i.e. http://x.x.x.x/tomcat at the moment I just set in my /etc/apache2/sites-available/default the following: Code:
<VirtualHost *:80> So in this way i can have it on http://x.x.x.x/, but I dont know if I am doing it right or less.. But my admin app is at http://x.x.x.x:8180/admin and tomcat at http://x.x.x.x:8180 |
Why if I set
Quote:
Servlets dont work, while if I mount it with Quote:
|
Quote:
I learnt something new... basically Apache can only serve the app like a static page, this is why servlets dont work.. However right now I am trying to play with the "Context".. but it seems that also if I modify the app.xml to another path, it doesnt work (that is the app is still accessible on the old address e.g.: still x.x.x.x:8180/myapp instead x.x.x.x:8180/myapp1) I looked for the conf files for the contexts in In the $CATALINA_BASE/conf/context.xml file: the Context element information will be loaded by all webapps. In the $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host. In individual files (with a ".xml" extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml extension) will be used as the context path. Multi-level context paths may be defined using #, e.g. foo#bar.xml for a context path of /foo/bar. The default web application may be defined by using a file called ROOT.xml. Unluckly without success... where else may I find them? |
All times are GMT -5. The time now is 11:09 AM. |