users@glassfish.java.net

Alternate docroot in an App without context root

From: <forums_at_java.net>
Date: Mon, 21 Mar 2011 10:25:01 -0500 (CDT)

 Hi,

I have a Web App with Alternate docroot seeting in the Admin Console.

*property name*: alternatedocroot_1

*Property value*: from=/user_documents/* dir=E:/web/docs

 

When the Web App deployed with a context root "myApp"

The Alternate docroot work properly. The link
http://localhost/user_documents/abc.txt          

will direct to  E:/web/docs/abc.txt

However, if   the Web App deployed *without* a context root "/"

The link http://localhost/user_documents/abc.txt will not direct
to  E:/web/docs/abc.txt. instead, http 400 error will be throw. 

 

Appreciated if anyone can explain why?


 

 

 

 

 

 

 


--
[Message sent by forum member 'rob1213']
View Post: http://forums.java.net/node/783831