J Java wrote:
Chris,

Whoever you are
I am just a relatively novice Java developer. and certainly not as
famous or an expert like
you.

The correct way of doing things is to make re-name your web
application ROOT and deploy it as such. If you want to get rid of the
port number, you'll have to run Tomcat on port 80 instead of 8080 or
86 or whatever

Ok. but what if i have to do this for multiple applications on a single
tomcat. I guess tomcat can have only one default ROOT app. right?

Well, yes. It would be a bit confusing otherwise.

Also general practice is to run tomcat behind HTTP and not expose it
directly to internet.

It is an often-used configuration, but not a general practice.
Tomcat is not shy, and does not need to hide behind http. It can be its own front-end webserver on the WWW. People who put a httpd in front of it do it for a reason, otherwise it would be a waste of cpu cycles.



 Please forgive me if my assumptions are absurd

Thanks,
Shailesh.



On Thu, Apr 24, 2014 at 9:02 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Whoever you are,

On 4/23/14, 7:57 PM, J Java wrote:
After searching online(seeing mixed results), and searching through
the Wiki, I was hoping someone can confirm how I can do the
following:

I installed my app, and it has a default URL of:
http://something:port/webappname/morestuff.action

I was wondering if it was possible to setup Tomcat so I could
browse to here: http://something

and have it either point at my webapp or redirect to my webapp.

You can do this by running your tomcat behind HTTP. I had put
this question on SO please find below the link
http://stackoverflow.com/questions/22040995/show-home-page-through-tomcat-without-changing-url/22051976#22051976
 please let me know if this helps.

Chris,

can you please put some more light on what I have done is correct
way of doing it or not. I did it because i wanted to have landing
page of my website which had dynamic content to be loaded and i
didn't want to use redirection to any other url.
The correct way of doing things is to make re-name your web
application ROOT and deploy it as such. If you want to get rid of the
port number, you'll have to run Tomcat on port 80 instead of 8080 or
86 or whatever.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTWS6HAAoJEBzwKT+lPKRYNXUQAIGN75kNAMDFLg94LM2FNamC
YwZ2ZO43zuwHlNeqnQD/0xQBW/e1kEDNr7lOjx7bJ33kKRB2WF1dUQ+rb8Xh1gJZ
Zezo/tHSxgCTTgpnfW/4/rQlVyQRWZVH30n7H0V7eIORTC2PGA6Qh0WjnkljVmcs
zog4ssPolCV6oB/3N8CjzMkSw1AzCc9nL2dkTm15QrLyvv5jbPOGhXvMCTmP3FVE
JUcnsvuXHMLzM0I6Ned2un9OFoJeO1pqzJ7pmRrvQqYZSJi3cHB9oGEaqXax259y
pbGXKZrn0ZmRJyGtugeDzJqh9eXRfdTCxFeYuIu3klDOX80+pxK/0mHE4yXILEsX
zF64hK66oF8mXaAbdci62e4EKg0tNxeFTSm1FEOPkwcY6NxOFVXEz5Z/FP+WOfgz
mow9r6MjZnlks5YPDs2ZDi5gvbOcslxIyYGTLTGq72TLOJ6pzM+Dyr3fKwJEbQ9X
DB2vD9FvjZyj+p29faBDT3Q2wTrPid9Vk9+/A3Aqymop+StdCGKdn2Q/+QFwg/z1
Ryt2ktndmuiDSewIcJ83lI6k83fzu+ANYqFwJeIvj/P4coRqz6eq2jmyj4YOe/TX
XhRgm47ElDNulikQJAg7+osNcGqA2xzvcYEQmK4rS5+bXl+ogMtIbEy8gLdOBRgj
GSpT2OlqbV+ZI6BVQVXx
=Ks31
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to