Solved

I need to control the headers sent by apache

Posted on 2004-08-16
1
196 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
Comment Utility
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now