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



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

Have Programming Question? Ask it here!
 
 
 


Java Coder
How to add mod_deflate to apache without recompiling
1 Answer(s)      a year and a month 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 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
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
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 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 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 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 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
how to configure apache tomcat for eclipse when already its used by netbeans
how to configure apache tomcat for eclipse when already its used by netbeans  How to configure Apache tomcat for eclipse when already it's used by net beans. Should i change the server port number if so how should i change
Apache James - JavaMail
Apache James  How to add and manage users in Apache James Mail server? How to manage their in boxes
How to hide text in Word Document using Apache POI library
How to hide text in Word Document using Apache POI library  Is it possible to hide text in MS Word Document using Apache POI library? If yes, please let me know how. I am able to create and read the document using POI library
How to Write to a File in Java without overwriting
Learn how to Write to a File in Java without overwriting in your Java program This tutorial teaches you how to write to a file in Java without overwriting... which already contains the data and our program will write to this file without
How Run JSP in Apache TomCat Server? - JSP-Servlet
How Run JSP in Apache TomCat Server?  How to Run JSP in Apache Tomcat Server? I have getting Jasper Exception which says class not found i have pasted my hello world example of JSP in the Jsp-example directory. and tried. 
how to validate the telephone number without using jquery in html with javascript
how to validate the telephone number without using jquery in html with javascript  how to validate the telephone number without using jquery in html with javascript
how to delete a row in sql without using delete command.
how to delete a row in sql without using delete command.  how to delete a row in sql without using delete command. thanks in advance
How can we submit a form without a submit button?
How can we submit a form without a submit button?  How can we submit a form without a submit button
how to send mail to many recipients using jsp,apache
how to send mail to many recipients using jsp,apache  hello i am reading and displaying the excel sheet with the help of jsp,apache(poi).now i want to send this jsp page content (web page content which consists of this excel
how can i achieve multiple inheritance in java without using inheritance ?
how can i achieve multiple inheritance in java without using inheritance ?  how can i achieve multiple inheritance in java without using inheritance
How to add or create instant messaging in website?
How to add or create instant messaging in website?  How to add or create instant messaging in website
how can i add hibernate plugin to eclipse?
how can i add hibernate plugin to eclipse?  how can i add hibernate plugin to eclipse
How to add or create instant messaging in website?
How to add or create instant messaging in website?  How to add or create instant messaging in website
How to add struts2.1.8 plugin in eclipse - Struts
How to add struts2.1.8 plugin in eclipse   Hello, Can anybody help me how to add struts2.1.8 plugin in eclipse3.4
How to save form fields into the MySql Database without submit button in jsp?
How to save form fields into the MySql Database without submit button in jsp?  I want to store user inputs into the database using javasccript or ajax or jqury but without submit button. Form Contains three fields
how to test iphone app on iphone without developer program
how to test iphone app on iphone without developer program  Is it possible to test the iPhone application on different device without the UDID Key?   No, without the UDID Key no one test the application on iPhone
How to Make Money Online Without a Website
Its easy to Make Money Online Without a Website if you patience and little... without creating your own website. There lot's of skill required to register... by which you can earn money without creating your own website. Everyone around
How to Delete a column and Add a new column to database
How to Delete a column and Add a new column to database   How to Delete a column and Add a new column to database   Hi, The following query is executed for add and delete a column in a table- for drop a column
how to build a colorful clock in JSP without using Flash.
how to build a colorful clock in JSP without using Flash.  I have to make a colorful clock using java programming or some API in a JSP page. Please send me a code for it as soon as possible
how add tabs at the left side of a pane
how add tabs at the left side of a pane  sir i have added the tabs at the top left corner of the pane, but i am unable to add it at the left side of the pane, so please help me
how to add pageup page down functionality in scrolpane
how to add pageup page down functionality in scrolpane  how to add pageup page down functionality in scrolpane. In my GUI untill i dont click on screen area , the page up & pagedown button not works . what should i do to make
Advertisements
 

 

 

DMCA.com