Re: Where HTTP response headers are defined?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Dec 22, 2012 at 9:28 AM, Daniele Imbrogino
<d.imbrogino@xxxxxxxxx> wrote:
> Hi everybody!
>
> Where Apache 2.4.3 defines the HTTP response headers?
> Is it possibile to edit them? (I know the 'ServerTokens' directive, but what
> about the others?)

They're set in various places.  You can grep the source code.

>
> If I write a CGI program it has to start with the "Content-type" line, while
> if I request a text document it has a content-type yet.
>
> Is it hard-coded?

If it's a static file, usually mod_mime sets the content-type based on
file extension. If it's dynamic, whoever generates the response
usually sets the content-type.

--
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux