httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Andersson" <>
Subject [users@httpd] Forcing files in a directory to be opened by the browser
Date Thu, 10 Jun 2004 15:31:10 GMT
Hi all.

Is it possible to force certain files in a directory to be opened with
the browser instead of the associated application?

I have created the following entry in my httpd.conf to allow the users
to see all the log-files in the logs-folder, but I don't want then to
open them with the associated program. I would like the files to open in
the browser so they after they opened the file can refresh the browser
to get the updated content of the log-file.


Alias /logs/resin_logs/
<Directory "/opt/app/resin/2.1.6/logs">
    Options Indexes MultiViews
    AllowOverride AuthConfig
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /opt/app/apache/2.0.49/passwd/passwords
    Require valid-user
    Order allow,deny
    Allow from all

I'm a rookie when it comes to configuring web-servers, so please forgive
me if I'm asking stupid questions.

Best Regards / Erik Andersson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message