-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mel wrote:
> I need my apache server to only allow ".txt" and ".html" files to be
> viewed. ALL other files should be "Save As" dialoged.
>
> Is this possible ?
> any example is highly appreciated.
>
> I read something about application/stream-oct... but can not quite
> understand where I should place this.
>
> I have a download area llike: /mnt/downloads, and any file from this
> area should be saved and not opened for viewsing such as pdf files or
> docs.
>
> many thanks in advance
See
http://httpd.apache.org/docs/2.2/mod/core.html#forcetype
Specifically the examples listed beneath the explanation.
To make IE open the 'Save As' dialogue you can set the mime type to
application/octet stream. Note that this will probably not work for all
browsers.
- --
Brendan Gillatt | GPG Key: 0xBF6A0D94
brendan {a} brendangillatt (dot) co (dot) uk
http://www.brendangillatt.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFHs3xbuv4tpb9qDZQRAvPOAJ4qQS4uyKFPl3uaxeia96I2q4OrtgCcCbAK
6g+Lss2BXgxbog+FTg/KUng=
=8CNI
-----END PGP SIGNATURE-----