• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Probelm with creating virtual hosting with tomcat

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i have a domain called mysite.com
i have the web application and place the all the jsp files in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\mysite

Now i run my jsp files as http://11.22.33.44:8080/mysite/index.jsp

When i run like this it worked fine.Now i have to create the virtual hosting with tomcat to my application.

like http://www.mysite.com/index.jsp

For that i changed the server.xml in conf/server.xml

server.xml

<Host name="www.mysite.com" appBase="webapps/mysite"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

And also changed the conf/catelina/mysite/ROOT.xml

<Context displayName="sayhi" docBase="" path=""
workDir="work/Catalina/sayhi/_">
</Context>

i changed like that but it didn't work.Please suggest can i made any other changes.
 
Sheriff
Posts: 22821
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a special forum for Tomcat issues. Let's go there instead.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The appBase attribute must be an absolute file system path because you are creating a new application context.

Bill
 
karicheti sandya
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When i give the url as

http://www.mysite.com:8080/mysite/index.jsp


it worked fine.But my requirement is to change the url as


http://www.mysite.com/index.jsp

For that requirement what changes i have to made.please suggest
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried to replace the appBase attribute as William suggested??

He wrote that you need to use an absolute file system path.

e.g.
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic