Solved

I need to control the headers sent by apache

Posted on 2004-08-16
1
199 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Leverage Browser Caching 7 73
Use of SSL Certificates - http vs https 3 81
Missing Apache mod_DBD packages in Centos 7 2 86
Apache LDAP Authentication 20 23
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

790 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