Hi All !
I am interested in to compress CSPs output. My application uses Cache as a WebService server and I would like to compress the content soming from the Cache.
I am using Apache 2 and tried mod_deflate, mod_gzip, none of them work. I can compress "static" content (i.e. : the Apache manual), but I had no success with CSP. Here is an excerpt from the httpd.conf file :
LoadModule deflate_module /usr/lib/httpd/modules/mod_deflate.so
#### BEGIN-ApacheCSP-SECTION ####
ScriptAliasMatch /*.([Cc][Ss][Pp]|[Cc][Ll][Ss])$ "/usr/cache/csp/bin/nph-CSPcgi"
Alias /csp/ /usr/cache/csp/
<Directory "/usr/cache/csp/">
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/*
AddOutputFilter DEFLATE cls csp
AllowOverride None
Options MultiViews FollowSymLinks ExecCGI
Order allow,deny
Allow from all
<Files CSPnsd>
Deny from all
</Files>
<Files CSP.ini>
Deny from all
</Files>
<Files CSP.log>
Deny from all
</Files>
<Files CSPnsd.ini>
Deny from all
</Files>
<Files CSPnsd.pid>
Deny from all
</Files>
<FilesMatch "\.(log|ini|pid)$">
Deny from all
</FilesMatch>
</Directory>ScriptAlias /csp-bin/ "/usr/cache/csp/bin/"
<Directory "/usr/cache/csp/bin/">
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/*
AddOutputFilter DEFLATE cls csp
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Action text/csp "/csp-bin/nph-CSPcgi"
#### END-ApacheCSP-SECTION ####What I miss ? Is it possible at all ?
Thanks for advance, Andras
