Solved

I need to control the headers sent by apache

Posted on 2004-08-16
1
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

736 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