• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

How to use Mod_autoindex.c

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to get a directory listing of a location on my server using tomcat.
How do I use the mod_autoindex.c in tomcat to do that?

Is there a special way to configure a web.xml for that?

Joe Richard
 
Saloon Keeper
Posts: 23285
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The mod_autoindex.c module is part of the Apache HTTPD server, not the Apache Tomcat server. The clues are in its name. First, and foremost ".c" means C programming language, not Java, and Tomcat, unlike Apache HTTP (more commonly known as simple "Apache"), is all Java.

If that wasn't clue enough. Anything named "mod_something" is almost certainly an Apache module.

Tomcat will index any directory within a webapp providing that there's nothing defined in web.xml that maps to the equivalent relative pathname. And, of course, providing that Tomcat has read-access rights to that directory. Although for directories within a WAR, that should always be the case.
 
reply
    Bookmark Topic Watch Topic
  • New Topic