you need the apache mod_substitute module
http://httpd.apache.org/docs/2.2/mod/mod_substitute.html
in debian squeeze it's called 'substitute',
I don't know how it's called in centos.


On 04/11/2012 07:56 PM, Jeff Folk wrote:
On Apr 11, 2012, at 8:51 AM, Bruno Lingner (Hugo) wrote:

hi

we experimented a lot since the daylight saving time with sogo and calendar 
clients that display the events in the wrong timezone. we finally narrowed down 
the problem and solved it through a rewrite rule in the apache config:

    RequestHeader unset Accept-Encoding

    AddOutputFilterByType SUBSTITUTE text/calendar text/xml
    Substitute 
's|^RRULE:([A-Z].+[A-Za-z0-9]);?FREQ=([A-Za-z]*);?(.*)$|RRULE:FREQ=$2;$1$3|'

Interesting... I try adding this to my VirtualHost and apache won't start up... 
The following error is logged in httpd error_log:

Syntax error on line 778 of /etc/httpd/conf/httpd.conf:
Invalid command 'Substitute', perhaps misspelled or defined by a module not 
included in the server configuration

What module needs loading for the 'Substitute' command? This is a CentOS 5.x 
installation (SmeServer).

Thanks;
Jeff--
[email protected]
https://inverse.ca/sogo/lists
--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to