[otrs-cvs] otrs/scripts apache2-httpd.include.conf,1.26,1.27

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/scripts
In directory lancelot:/tmp/cvs-serv30091/scripts

Modified Files:
	apache2-httpd.include.conf 
Log Message:
Improved documentation. Removed unused module Apache2::RequestRec. Only activate mod_deflate for OTRS, not globally.

Author: mg

Index: apache2-httpd.include.conf
===================================================================
RCS file: /home/cvs/otrs/scripts/apache2-httpd.include.conf,v
retrieving revision 1.26
retrieving revision 1.27
diff -2 -u -d -r1.26 -r1.27
--- apache2-httpd.include.conf	4 Jan 2013 11:05:19 -0000	1.26
+++ apache2-httpd.include.conf	4 Jan 2013 13:03:06 -0000	1.27
@@ -4,5 +4,4 @@
 # --
 
-# agent, admin and customer frontend
 ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
 Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
@@ -14,16 +13,14 @@
 #SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'
 
-# if mod_perl is used
 <IfModule mod_perl.c>
 
-    # load all otrs modules
+    # Setup environment and preload modules
     Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
 
-    # Apache::Reload - Reload Perl Modules when Changed on Disk
+    # Reload Perl modules when changed on disk
     PerlModule Apache2::Reload
     PerlInitHandler Apache2::Reload
-    PerlModule Apache2::RequestRec
 
-    # set mod_perl2 options
+    # general mod_perl2 options
     <Location /otrs>
 #        ErrorDocument 403 /otrs/customer.pl
@@ -38,5 +35,5 @@
     </Location>
 
-    # set mod_perl2 option for generic interface
+    # mod_perl2 options for GenericInterface
     <Location /otrs/nph-genericinterface.pl>
         PerlOptions -ParseHeaders
@@ -45,5 +42,4 @@
 </IfModule>
 
-# directory settings
 <Directory "/opt/otrs/bin/cgi-bin/">
     AllowOverride None
@@ -51,9 +47,18 @@
     Order allow,deny
     Allow from all
+
+    <IfModule mod_deflate.c>
+        AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json
+    </IfModule>
 </Directory>
+
 <Directory "/opt/otrs/var/httpd/htdocs/">
     AllowOverride None
     Order allow,deny
     Allow from all
+
+    <IfModule mod_deflate.c>
+        AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json
+    </IfModule>
 </Directory>
 
@@ -72,13 +77,4 @@
 </IfModule>
 
-<IfModule mod_deflate.c>
-    AddOutputFilterByType DEFLATE text/html text/javascript text/css text/xml application/json text/json
-
-    # logging to /var/log/httpd/deflate_log - commented out by default
-    #DeflateFilterNote ratio
-    #LogFormat '%b (%{ratio}n) "%{Content-Type}o" %r' deflate
-    #CustomLog logs/deflate_log deflate
-</IfModule>
-
-# MaxRequestsPerChild (so no apache child will be to big!)
+# Limit the number of requests per child to avoid excessive memory usage
 MaxRequestsPerChild 4000
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.