users@glassfish.java.net

Re: virtual directory?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 24 May 2006 17:53:16 -0700

Matt,

Matthew Pease wrote On 05/24/06 17:22,:

> Hi Jan -
>
> I guess I didn't phrase my question well... you didn't understand
> my question.
>
> What I need has nothing to do with deployment... it is a 100% http
> engine question.
>
> I want to map a certain URL, say myhost.com/content
>
> to serve files from a certain path on my webserver, say
> /home/matt/content_files
>
> Do you or does anyone out there have an idea how to do this?


When you do:

  asadmin deploydir --contextroot <myroot> <directory-path>

the deployment code will add this entry to your domain.xml:

  <web-module availability-enabled="false" context-root="<myroot>"
              directory-deployed="true" enabled="true"
              location="<directory-path>"
              name="<name>" object-type="user"/>

and notify the web container of the new mapping, so that you can start
accessing your directory's resources like this:

  http://<host>:<port>/<myroot>

Or is this not what you were asking about?


Jan

>
> Thank you-
> Matt
>
> On 5/24/06, Jan Luehe <Jan.Luehe_at_sun.com> wrote:
>
>> Hi Matt,
>>
>> Matthew Pease wrote On 05/24/06 08:33,:
>>
>> > Hi all --
>> >
>> > I'd like to have a local raw content folder served from a certain URL.
>> >
>> > how is this done on glassfish?
>> >
>> > How it is done with Jboss:
>> > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829886
>> >
>> > <!-- Add a static context /Storage using directory
>> /net/stuff/Storage -->
>> > <Context docBase='/net/stuff/Storage' path='/Storage' />
>>
>>
>> GlassFish supports directory deployments. Please see:
>>
>> https://glassfish.dev.java.net/downloads/quickstart/index.html#ProcedureTo_Deploy_From_a_Development
>>
>>
>> for a start.
>>
>> Let me know if you still have any questions.
>>
>>
>> Jan
>>
>>
>> >
>> > Thank you-
>> > Matt
>> >
>> > ps. sorry to cross post here & the online BB... but I didn't get
>> > anything back from the BB.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>