A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Products
»
Tomcat
Author
redirect to /folder with domain name.
Chris Royce
Greenhorn
Joined: Feb 17, 2009
Posts: 1
posted
Sep 07, 2009 03:51:09
0
Hi there,
I've looked around but can't find any guides (I understand) that help me on this...
I have
tomcat
5.5 running my app (a war file placed in the webapp folder)
www.myDomain.com/myApp
However I'd like it such that www.myDomain.com goes straight to the myApp folder (hidden if possible). eg..
www.myDomain.com ---MAPS_TO----> www.myDomain.com/myApp
without anyone seeing this?
Possible?
tomcat/.htaccess?
Thanks for ANY pointers
Chris
Sagar Rohankar
Ranch Hand
Joined: Feb 19, 2008
Posts: 2896
1
I like...
posted
Sep 07, 2009 05:06:00
0
Chris Royce wrote:
www.myDomain.com ---MAPS_TO----> www.myDomain.com/myApp
Edit the index.html/jsp page in the ROOT directory in webapps. Add the jsp:forward tag to redirect the request for domain "/" to the "myApp".
And I thought, you might find this
useful
[LEARNING bLOG]
|
[Freelance Web Designer]
|
[and "Rohan" is part of my surname]
Sagar Rohankar
Ranch Hand
Joined: Feb 19, 2008
Posts: 2896
1
I like...
posted
Sep 07, 2009 05:07:07
0
And welcome to JR
I agree. Here's the link:
http://aspose.com/file-tools
subject: redirect to /folder with domain name.
Similar Threads
can Servlet help create a multi-store system?
How to avoid directory listing?
Absolute path for jsp
mapping default page to domain name in tomcat without port number.in Ubuntu
Submit data from popup window to servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter