Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Last "/" in webapp URL

Reply
Thread Tools

Last "/" in webapp URL

 
 
Mike
Guest
Posts: n/a
 
      03-05-2006


I have tomcat4 in conjuction with Apache server serving jsps


I have a webapp "foo" with a default page of index.jsp.

index.jsp is accessed via: http://mydomian/foo/

Is there a way to configure the web.xml file in "foo" such that I can
drop the last "/" from the URL? In other words via:

http://mydomian/foo


Interesting enough, as is, in can be accessed that way using tomcat4
direct as http://mydomain:8080/foo


Thanks
 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      03-05-2006


Discovered my own answer.
Answer lies in Apache conf file.

I had: JkMount /foo/* worker1

Added: JkMount /foo worker1





On Sun, 05 Mar 2006 21:01:17 GMT, http://www.velocityreviews.com/forums/(E-Mail Removed) (Mike) wrote:

>
>
>I have tomcat4 in conjuction with Apache server serving jsps
>
>
>I have a webapp "foo" with a default page of index.jsp.
>
>index.jsp is accessed via: http://mydomian/foo/
>
>Is there a way to configure the web.xml file in "foo" such that I can
>drop the last "/" from the URL? In other words via:
>
>http://mydomian/foo
>
>
>Interesting enough, as is, in can be accessed that way using tomcat4
>direct as http://mydomain:8080/foo
>
>
>Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to start with a webapp that is not really a webapp Andrew Java 7 06-28-2009 08:42 PM
Tomcat: using webapp context to override default URL sugnaboris@gmail.com Java 3 03-06-2008 08:09 PM
tomcat: remove webapp from the url prezjt Java 1 03-08-2007 11:10 PM
What should I do webapp or webservice + webapp? jhooper71@yahoo.com ASP .Net 6 02-10-2006 02:07 PM
Re: Configure Apache HTTPD not to see the webapp name in the URL Ben Jessel Java 5 06-29-2004 02:59 AM



Advertisments