Linux.com

Author Message
Joined: Apr 27, 2008
Posts: 2
Other Topics
Posted Apr 27, 2008 at 1:36:39 PM
Subject: Http headers modification using Apache

Greetings, I want to create and change several heeders on http response, so I started dig in to it and I found that apache has module that can help me - mod_headers it was just what need and it looked very simple.
After several “hurreeyyyy” I tried it and I saw that finally I can create my own headers! Then I wanted to change existing headers, and there I had some problems… and I don’t understand why.
Is there anyone here that can help me?
Lest say for example that I want to change the “Content-Length” this is what added in the conf file:
header set Content-Length “100”

and it didn’t help, I cant also to unset others headers… can anyone help me?

Im working on fedora core 7 and apache 2.2.4

Back to top Profile Email Website
Shashank Sharma
Joined Jan 01, 1970
Posts: 1213
Location:New Delhi, India

Other Topics
Posted: May 05, 2008 9:46:09 AM
Subject: Http headers modification using Apache

Why didn't you use "edit" instead of "set". I guess this should be more helpful:
http://httpd.apache.org/docs/2.2/mod/mod_headers.html

Cheers!

Coauthor of Beginning Fedora: From Novice to Professional published by Apress.

Please follow the Forum Guidelines

Back to top Profile Email Website Yahoo!
Peter
Joined May 16, 2008
Posts: 22

Other Topics
Posted: May 16, 2008 2:04:53 PM
Subject: Http headers modification using Apache

Quote:
im working on fedora core 7 and apache 2.2.4[...]

just a little note... fedora is no longer "core". As of version 7 it started to be just Fedora. =)

~ R
[Modified by: rothschild on May 16, 2008 02:05 PM]

Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya