Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

RE HTML and a drectory listing

Steve_617
Advisor

RE HTML and a drectory listing


I have a whole lot of pdf files that are created and then placed in a directory on my web server.

My manager can then view these files via a web interface. How can I disable the Tomcat web server from displaying the header and footer that appears when listing the files.

The header displays Directory Listing For /REPORTS/ - Up To /

then my files appear correctly.....

...and then it also displays a tail which says
Apache Tomcat/4.1.29.

Surely there must be a conf file in tomcat that I can allow the files to be listed, but not display the header and footer
6 REPLIES
Willem Grooters
Honored Contributor

Re: RE HTML and a drectory listing

A bit late, just ran into your question.

You can run a procedure at regular intervals, that creates an INDEX.HTML file on that directory, that shows just the names of the files, and a hyperlink to them. If you have multiple directories, you can create such a file as well. The advantage is you can list multiple versions of a file, somthing usually lost in standard directory listings created by webservers (even WASD has this problem). Another advantage is you can add any feature you want.

I use this to list logfiles to be examined.
If properly set up, the files will show up in the browser using the correct plugin, for PDF files, use the Adobe PDF plugin.
An example of such an index file is attached (if you open the file with a brwser, you will see what it looks like).

A simple DCL procedure can do the job.
Willem Grooters
OpenVMS Developer & System Manager
Joseph Huber_1
Honored Contributor

Re: RE HTML and a drectory listing

Well, not using Apache but OSU web servers:
isn't it possible to modify the directory script of the webserver ? In OSU there one can simply in a config directive specify a different script/CGI program to do the directory listing.

On the other hand, for just a specific case, modify Willems suggestion: instead of a script running at an interval to produce an INDEX.HTML, why not write a CGI or PHP script to produce the file-links on the fly, and use this script URL instead of the directory URL ?
http://www.mpp.mpg.de/~huber
Willem Grooters
Honored Contributor

Re: RE HTML and a drectory listing

AFAIK, OSU has the same 'problem'.

It's just the example. I use this method for logfiles ;) Of course, it can be done with a similar procedure as CGI-script.
Willem Grooters
OpenVMS Developer & System Manager
Joseph Huber_1
Honored Contributor

Re: RE HTML and a drectory listing


Just for information, how such a DCL script would look like:

< http://wwwvms.mppmu.mpg.de/test/dirlist.com >
It works for the OSU web server, try:

http://wwwvms.mppmu.mpg.de/htbin/dirlist/disk$www/www/test/

http://www.mpp.mpg.de/~huber
Willem Grooters
Honored Contributor

Re: RE HTML and a drectory listing

This is the part of my daily job, that creates the HTML file. To be useful, you'll have to think of getting the right location from the URL (CGIBIN.COM that comes with WASD is useful for both SWS and WASD, I think it works for OSU as well ;)) before you can use it as a CGI-procedure. I haven't tried it as such but my WASD logs - ALL of them - are presented by this procedure's output.

Consider it just a starting point.

WG
Willem Grooters
OpenVMS Developer & System Manager
Willem Grooters
Honored Contributor

Re: RE HTML and a drectory listing

Oops, wrong extension (and format). Thgis looks better
WG
Willem Grooters
OpenVMS Developer & System Manager