Solved

I need to control the headers sent by apache

Posted on 2004-08-16
1
197 Views
Last Modified: 2010-03-04
Hello.

I need to control the headers sent by apache.

    Pragma: public
    Last-Modified: ### The last-modified date should go here ###
    Cache-Control: no-store, no-cache, must-revalidate
    Cache-Control: pre-check=0, post-check=0, max-age=0
    Content-Transfer-Encoding: none
    Content-Type: application/octetstream; name="###   The name of the file should go here   ###"
    Content-Disposition: inline; filename="###   The name of the file should go here    ###"
    Content-length: $content_len

So, if someone click on "page.html" the above headers will be used.

How can I get the above headers to be used for all files in a given directory?

Thanks!
0
Comment
Question by:hankknight
1 Comment
 
LVL 15

Accepted Solution

by:
samri earned 500 total points
ID: 11812110
hi Hankknight,

take a look at apache docs on the following subject

http://httpd.apache.org/docs-2.0/mod/mod_headers.html
http://httpd.apache.org/docs-2.0/mod/mod_setenvif.html


i do not have much experience but, browsing thru the docs, I would believe that most of your requirement should fit in.

cheers.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with htaccess under apache 7 27
Magento error 9 73
XAMPP 14 44
htaccess file 3 79
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question