Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to add the encoding type?

Status
Not open for further replies.

jaitropfaim

Instructor
Jul 17, 2003
1
DE
HI,

i'm using APACHE 2.0.36!

when i'm creating a gz-encoded document with php then i create the following headers:
header("Content-type: text/html");
header("Content-Encoding: gzip");

how do i have to configure the APACHE WEBSERVER so that it generates the Content-Encoding header, when i'm requesting a .htm.gz document?

thanks in advance for any help... :)

C Ya Jimmy
 
I don't think that it generates a header. But you shouldn't have to do anything to get apache to unzip .gz files on the fly. However, if it's not working, add or uncomment this directive:

AddEncoding x-gzip gz tgz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top