Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: ForceType and Apche2 |
|
Author |
|
grove101
Joined: 30 Oct 2006 Posts: 3
|
Posted: Mon 30 Oct '06 4:52 Post subject: ForceType and Apche2 |
|
|
Hi
I am using the following code to avoid streaming of video files. It's working fine with FireFox but for some reason Internet Explorer starts to play it as streaming video.
Code: |
<Files *.mpg>
ForceType application/octet-stream
</Files>
|
I've checked the httpd.conf and AllowOverride is set to On.
I tried the following code under apache 1.3 which works well with Fire Fox and Internet Explorer but gives a Invalid command 'Header' with apache 2
Code: |
<Files *.mpg>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
|
any suggestions ?
regards
grove101
Last edited by grove101 on Mon 30 Oct '06 7:40; edited 2 times in total |
|
Back to top |
|
Brian
Joined: 21 Oct 2005 Posts: 209 Location: Puyallup, WA USA
|
Posted: Mon 30 Oct '06 6:35 Post subject: |
|
|
Gosh, I am not sure but doesn't this have something to do with the MIME type configuration on the client's end too?
For example, if you go to http://www.Pocketmovies.net and download an MPEG, it states on the screen to right click and select save as. But if I simply left click, it uses the default player for the OS or browser to play the media as it is downloaded.
I suspect that this is at least in part a client side issue you cannot resolve other than to RAR or ZIP the file. |
|
Back to top |
|
grove101
Joined: 30 Oct 2006 Posts: 3
|
Posted: Mon 30 Oct '06 6:47 Post subject: |
|
|
Well this .htaccess code overrides the client's MIME configuration. I tested it on my local server i.e. apache 1.3 but does not work on apache 2. Temporally I have the 'Right Click to save ...' statement on my client's site but would like to get the .htaccess to work |
|
Back to top |
|
grove101
Joined: 30 Oct 2006 Posts: 3
|
Posted: Mon 30 Oct '06 10:01 Post subject: |
|
|
Found the problem ..... mod_headder was not compiled |
|
Back to top |
|
|
|
|
|
|