This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing Resin's Default Webapp

 
Dylan Stamatopolis
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that Resin's default /webapps is very confusing... ie:

When you install Resin, the default /webapps, "resin-doc", is setup via the /conf/resin.conf file to point to the /doc directory.
The /doc directory has one index.jsp file that does a "forward" to page in the actual webapp ie: /webapps/resin-doc/

In the Resin tutorial, they tell you to simply create a directory under /webapps, for example: /webapps/superapp/, drop a .jsp file in this directory, and you can go on your merry way of accessing this new webapp by going to:
http://localhost:8080/superapp

Yes, this works, but nobody wants to have to type in the /superapp in order to access your new webapp.

I searched and searched and searched online, but couldn't find an easy way to access your new webapp (/webapps/superapp/), via just typing in:
http://localhost:8080/

I know this question is of uber-newb status, but I thought it would be nice if this was documented

Any quick answer !?
 
Dylan Stamatopolis
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok... I'd thought I'd drop by and answer my own question

You need to change this line:
<document-directory>doc</document-directory>

To be:
<document-directory>webapps/yourproject</document-directory>

This will ensure that anytime you type in:
http://localhost:8080, that you'll be directed to your own webapp instead of the default resin-doc webapp pre-configured.

That stumped me for a while.
If this helped anybody else but me, definintely let me know
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic