You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Di...@eurotours.at on 2004/06/11 09:18:16 UTC
[users@httpd] Antwort: [users@httpd] Forcing files in a directory to be opened by the
browser
Look at:
http://www.snert.com/Software/mod_view/
regards Dietmar
"Erik Andersson" <er...@cybercomgroup.com> am 10.06.2004 17:31:10
Bitte antworten an users@httpd.apache.org
An: <us...@httpd.apache.org>
Kopie:
Thema: [users@httpd] Forcing files in a directory to be opened by the
browser
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.
Httpd.conf:
Alias /logs/resin_logs/
/opt/app/resin/2.1.6/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
</Directory>
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: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
---------------------------------------------------------------------
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