Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

How to use Mod_autoindex.c

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • 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: 21624
147
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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.
 
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!