httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Forcing files in a directory to be opened by the browser
Date Fri, 11 Jun 2004 09:34:39 GMT
Erik Andersson wrote:
> I tried that and also adding ForceType text/plain to all the files in
> the Directory-tag, but didn't work either. It still opens the log-files
> with the associated program..

You'll need to varify that the file is delivered as text/plain. You could
try this:

$ telnet <yourhost> 80
HEAD /logs/access_log HTTP/1.1
Host: <yourhost>
(two new-lines)

See what the Content-Type is in the response.

What browser are you testing with? Do other browsers behave differently?

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message