|
Home > Archive > Apache Server configuration support > May 2007 > Image Download
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi all!
I want to put a non-html file out on my web server but I don't want
the web browser to display the file (and then make the user go to
"file", then "save as", but rather to automatically bring up the "SAVE
AS" screen for the user to download the file instead. I want to this
in only one folder in the server...
I didn`t find anything about that (maybe I don't know how to search
hehehe).
| |
| petersprc 2007-05-28, 1:21 pm |
| With mod_headers you could do:
<FilesMatch "\.gif$">
header set content-disposition "attachment; filename=%
{REQUEST_FILENAME}"
</FilesMatch>
On May 28, 1:20 pm, Fravo <fravo.cr...@gmail.com> wrote:
> Hi all!
> I want to put a non-html file out on my web server but I don't want
> the web browser to display the file (and then make the user go to
> "file", then "save as", but rather to automatically bring up the "SAVE
> AS" screen for the user to download the file instead. I want to this
> in only one folder in the server...
>
> I didn`t find anything about that (maybe I don't know how to search
> hehehe).
| |
|
| To do this, I need to add the module mod_headers, I compiled my apache
without it, so I need to recompile? When I loaded this module in
httpd.conf it didn't work because it says I don't have mod_headers.so,
So, how can I add this module without compile apache? And, if I really
need to recompile, is there any problem? Is just:
../configure --with-blablabla
make
make install
thx for your help.
--
Fravo
On May 28, 2:52 pm, petersprc <peters...@gmail.com> wrote:[vbcol=seagreen]
> With mod_headers you could do:
>
> <FilesMatch "\.gif$">
> header set content-disposition "attachment; filename=%
> {REQUEST_FILENAME}"
> </FilesMatch>
>
> On May 28, 1:20 pm, Fravo <fravo.cr...@gmail.com> wrote:
>
>
|
|
|
|
|