Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML How to add mod_deflate to apache without recompiling
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
How to add mod_deflate to apache without recompiling
1 Answer(s)      a year and 5 months ago
Posted in : HTML


Hi,

What is the best way to add moddeflate to the Apache server without recompiling the Apache? I have a Linux server (Centos) and I have to add the moddeflate module. How to add mod_deflate to apache without recompiling?

Thanks


Advertisement
View Answers

July 12, 2013 at 1:13 PM


Hi,

First of all you have to add LDFLAGS="-lz" in apr-1-config file.

Then you should compile the mod_deflate.c file. Use the following command to compile mod_deflate.c file.

cd /home/cpeasyapache/src/httpd-2.0.63/modules/filters/

/usr/local/apache/bin/apxs -i -c -Wl,lz mod_deflate.c

After that add the following code into httpd.conf file:

LoadModule deflate_module modules/mod_deflate.so

and then add the following line in httpd.conf:

<Location />
# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>

After that restart the server. Your mod_deflate.c should be working now.

Thanks



Related Tutorials/Questions & Answers:
How to add mod_deflate to apache without recompiling
How to add mod_deflate to apache without recompiling  Hi, What is the best way to add moddeflate to the Apache server without recompiling the Apache... to add mod_deflate to apache without recompiling? Thanks   Hi, First
Add year to Date without using Calendar in java
Add year to Date without using Calendar in java  how could i add a year to a date function without using calendar functions
Advertisements
How to use Apache POI?
How to use Apache POI?  Can anyone tell me how to use Apache POI??I... how to implement.Please help me out.   Download zip file from the following link: http://download.nextag.com/apache/poi/release/bin/ Then put
How to add
How to add   Hi, I want to make a website which will recommend users books according to the genre selected by them. I am using PHP, JavaScript and mySQL. The problem is that there will me almost more than 100 books
How to Configure Tomcat Apache in Netbeans IDE
How to Configure Tomcat Apache in Netbeans IDE  Can any one tell me how to add tomcat server in Netbeans IDE? With its steps ?? Thnx
How to add JTable in JPanel
How to add JTable in JPanel  How to add JTable in JPanel
how to add to numbers in java
how to add to numbers in java  how to add to numbers in java
how to add mulitiple projections
how to add mulitiple projections  how to add mulitiple projections and return them
how to add dynamic data
how to add dynamic data  how to add dynamic data to an existing web application
how to add a file in GZIP
how to add a file in GZIP  Hi, how to add a file in GZIP using Java.   Hi, I have found a good referral site for How to Add a file in GZIP file format using Java. http://www.roseindia.net/java/examples/io
how to add plugins into eclipse
how to add plugins into eclipse  Hello, I have installed eclipse sdk 4.2M5 separately and tomcat server separately now i have to connect both for that i don't have server option in my eclipse and i m trying to add plugins but m
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
how to add scrollbar to JFrame
how to add scrollbar to JFrame  hello friends i am making a java application in which i have a frame to which i wanted to add scrollbars but when i add my panel to scrollpane and then add that scrollpane to JFrame than
How to print a webpage without url and date in jsp ?
How to print a webpage without url and date in jsp ?  How to print a webpage without url and date in jsp
without ;
without ;  can u give me an example of a program without
without ;
without ;  can u give me an example of a program without
How to add a bean in spring application?
How to add a bean in spring application?  Hi, How to add a bean in spring application? Thanks
how to add fields at runtime in j2me
how to add fields at runtime in j2me  How can I add fields at runtime in my form? How can I switch screens and can add fields at runtime? Thanks Dhruv
how to add framework in xcode 4
how to add framework in xcode 4  how to add framework in xcode 4 iPhone?   In the project navigator, Select Project Select the 'Build Phases' tab Open 'Link Binaries With Libraries' expander Click the '+' button
how to get current date without system date
how to get current date without system date  is there any possiblity to get current date instead of system date in Java, as i dont want to change date in program and if i change date in OS automatically change in program also
how to reverse a string without changing its place
how to reverse a string without changing its place  how to reverse a string without changing its place   Hi Friend, Another way of reversing string: import java.util.*; public class ReverseString{ public static
How to add nofollow in website link?
How to add nofollow in website link?  Hi, I want to add nofollow in my outgoing links. What is the code? Thanks   Hi, Here is the code: <a rel="nofollow" href="http://">Click Here to visit</a>
how to add panel inside frame?
how to add panel inside frame?  I prepared a Frame with two labels and text fields and one button.when ever user clicks on the button two text fields... to add panel after those components.but while compilation its showing errors.how
How to add struts2 dependency in Maven?
How to add struts2 dependency in Maven?  What is the dependency code for adding to pom.xml file to include the struts2 library? Thanks   You should add the following in the pom.xml file for enabling the Struts 2
how to add database in Java Applet
how to add database in Java Applet  hi every java master or Java Professional my name is vincent i'm java beginners hope u all can ,tech me how to add database in Java Applet below this code is my applet source code . thank
How to add dynamic table in java
How to add dynamic table in java  How to add dynamic table in java   import java.awt.*; import java.sql.*; import java.util.*; import javax.swing.*; import java.awt.event.*; import javax.swing.table.*; public class
How to add a column in a table
How to add a column in a table   ... should know how you can modify the structure of the table. The problem is that we have to add a new column to our database by using the java program
Apache James - JavaMail
Apache James  How to add and manage users in Apache James Mail server? How to manage their in boxes
 

 

 

DMCA.com