Hi Astghik,
I don't really have a clue on your problem as I think you are creating a
virtual host within your tomcat installation.
What I do when I want to have myapp at the root directory of server (so
you access it with http://myip:8080) is to install your application in
webapps/ROOT
And to create virtual host and to set my webapp as root dir. I've done both
of them. But now I have db access problems and images on site don't display.
Estanislao Gonzalez-2 wrote:
Hi Astghik,
I don't really have a clue on your problem as I think you are creating a
virtual host within
HI Astghik
1. Don't put Context ... / elements in server.xml. They should go
into files named ROOT.xml in /etc/tomcat6/Catalina/localhost and
/etc/tomcat6/Catalina/www.myip.com. While your at it, drop the docbase
and path attributes ... they aren't needed when the Context element is
in it's own
Astghik,
As has already been pointed out:
1. Don't put Context elements in server.xml - use either:
a. META-INF/context.xml in your web application
b. $CATALINA_HOME/conf/Catalina/[hostname]/[application].xml
2. Don't use docBase in your Context element. Tomcat will figure that out
3.