Welcome Guest Search | Active Topics | Members | Log In | Register

Weborb - Jetty - htaccess-like file Options · View
Christophe
Posted: Tuesday, June 26, 2012 8:45:02 AM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hello,

WebORB running with Jetty, is it can be secured to prevent directories to list the contents, with a htaccess-like file?

If so, how should I do to avoid interfering with the installation WebORB?

Thanks in advance for your help,

Christophe
Mark Piller
Posted: Thursday, June 28, 2012 3:37:51 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
Hi Christophe,

Please see the following discussion which looks like has an answer to your question:
http://www.coderanch.com/t/92020/java/Disable-Directory-Listings-Jetty-webcontainer

Regards,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Thursday, June 28, 2012 11:47:39 PM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hi Mark,

A big thank you for the link.

I also want to tell you that WebWORB is amazing! I set up the datapush and it works perfectly!!!

Best regards,

Christophe
Christophe
Posted: Saturday, July 07, 2012 12:32:49 PM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hi Mark,

Does WebORB (based on Jetty) has a file webdefault.xml (I did not find a priori) or an equivalent file?

I don't know where to place the code to disable directory listing.
Do I create a file webdefault.xml for this?

Thanks in advance,

Regards,
Christophe
Mark Piller
Posted: Saturday, July 07, 2012 4:22:15 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
Hi Christophe,

I think that file is located inside of jetty's jar file. I have not looked myself, could you check there?

Regards,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Sunday, July 08, 2012 6:21:42 AM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hi Mark,

Indeed, webdefault.xml is placed in org.mortbay.jetty.webapp and the default value for dirAllowed is "true".

I found how to do: overriding this parameter to false from web.xml, not forgetting the load-on-startup param (set to 0) and the servlet mapping, it works perfectly !

Thank you again for showing me the way.

Regards,
Christophe
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.128 seconds.