Operating System - OpenVMS
1828355 Members
3049 Online
109976 Solutions
New Discussion

Re: Secure Web Server V1.3

 
Ronny_7
Regular Advisor

Secure Web Server V1.3

Hi,

My customer has installed and configured Secure Web Server in a Alpha system running on OpenVMS V7.3-1 and it is working successfully.

The query here is how to configure to read the VMS files with .log extension from the IE.
Whenever he tried to read these files with .log extension, a download window will appear.

He is able to list the contents of those files with .txt extension from IE.

Any advise will be very much appreciated.

Regards,
Ronny
9 REPLIES 9
Karl Rohwedder
Honored Contributor

Re: Secure Web Server V1.3

In directory APACHE$COMMON: you will find a file MIME.TYPES which will be called by
HTTPD.CONF. This file 'connects' file extensions with data type of the file, e.g.:
text/plain asc txt
Add your extension (here log) to the line and it should work.
Ronny_7
Regular Advisor

Re: Secure Web Server V1.3

Hi Karl,

Thank you for the reply.

I have asked the customer to tried your recommendation however he is still getting the file download window.

If he rename the same file to .txt extension, he has no problem to list out the content in the browser.

He has changed
from: text/plain asc txt
to: text/plain asc txt log

Did a shutdown(@sys$startup:apache$shutdown) and restart(@sys$startup:apache$startup) of the secure web server.

Any other recommendations?

Thanks and Regards,
Ronny

Re: Secure Web Server V1.3

In HTTD.CONF there is a 'DefaultType', normally set to 'text/plain'. So every file extension not found in MIME.TYPES gets handled in the 'Defualt'Type' way.

I have no problems to display .COM, .TXT and .LOG files. There are no entries in the MIME.TYPES file on a version 1.3.20 server.

Re: Secure Web Server V1.3

Sorry for the mistyping, it should read HTTPD.CONF.
Martin P.J. Zinser
Honored Contributor

Re: Secure Web Server V1.3

All of the above replies do assume that IE follows the rules and honors the mime type information sent by the server. IE is famous for not doing this (try to serve DCL .com files for some real fun ;-), it rather relies on the file extension to determine the repraesentation.

Possible solutions:

- Rename the files from .log to .txt on the VMS server
- Write a small CGI that "presents" the files as "text" to IE without an extension
- Maybe (untested) add .log to the known extensions on the clients and define IE as the viewer

HTH, Martin
Ronny_7
Regular Advisor

Re: Secure Web Server V1.3

Hi Juerg,

The DefaultType entry is already in the HTTPD.CONF, however IE is not able to display .log files.

Hi Martin,

Most of the OpenVMS files are .log extensions, therefore it take much efforts for customer to rename all of them to .txt.

You mentioned about writing a CGI scripts, is it possible for you to provide an example on this script to overcome this problem?

I saw in the HTTPD.CONF, there is a portion explanation the AddHandler, are you refering to this?

# To use CGI scripts:
#
#AddHandler cgi-script .cgi

Thanks and Regards,
Ronny
Cass Witkowski
Trusted Contributor

Re: Secure Web Server V1.3

You said he did the following:

He has changed
from: text/plain asc txt
to: text/plain asc txt log

Shouldn't the line read

text/plain asc log

Or actually be added after the line
text/plain asc txt

Martin P.J. Zinser
Honored Contributor

Re: Secure Web Server V1.3

Hi,

check http://zinser.no-ip.info/htbin/log.pl

for an example.

Source is attached, obviously very sketchy and can be improved in any of various different ways.

Greetings, Martin
Ronny_7
Regular Advisor

Re: Secure Web Server V1.3

Hi Martin,

Thanks for the advise to look into the file extension detection in IE.

I tried to add LOG extensions in the file types in my W2K system and define it as HTML document and it works fine.

Customer is, however, running WinNT on the client. Using the same concept, he found there is a LOG definition in the MIME types in IE which is defined as text document,
text/plain.

He changed this to
text/html and it is working now.

We also found an explanation on MIME types in Microsoft website.
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix_a.asp

To everyone who responsed,

Thank you for your time and recommendations.

Thanks and Regards,
Ronny