> From: Dave Hall [EMAIL PROTECTED] > Sent: 2006-07-03 01:35:51 CEST > To: phpgroupware-developers@gnu.org > Subject: Re: [Phpgroupware-developers] pdf with mod_deflate and IE > > Hi all, > > On Sun, 2006-07-02 at 13:57 -0400, Alan Langford wrote: > > This should be configurable. I have seen hosting environments where > > ownerships and permissions are such that a script does not have write > > access to anything in their public html directories. In these cases, you > > have little choice but to use /tmp, and it is advisable to prefix the > > file names with something unique, such as the session ID. > > > > The temp path is already configurable in phpgw. I always set it to a > unique dir per install. Whar is being proposed here sounds different to > me. > > I understand what Sigurd is proposing here, but I have some concerns. > Having a directory in the phpgw doc root which is writable by apache is > a potential security issue. > > As much as I would like to say stuff IE, that is potentially a large > section of our user base, so I won't propose that :) Can we disable > mod_deflate for IE when outputing a PDF? > > btw I looked at the code and would prefer to see that we delete all > files in that dir which are more than say an hour old. > > Cheers > > Dave >
"SetEnvIfNoCase Request_URI (?:pdf)$ no-gzip dont-vary" Will normally work (as it does on redirect) - but it compresses the result anyhow when the pdf-document is created within a php-script. I don't see how one can disable the mod_deflate for IE except maybe for a specific php.file as (don't know if it works): "SetEnvIfNoCase Request_URI create_pfd_script.php no-gzip dont-vary" How about using a .htaccess file - or an alias in httpd.conf - and remove handlers and types as: <Directory /path/to/files> Options None AllowOverride None DirectoryIndex index.html RemoveHandler cgi-script .cgi .pl RemoveType application/x-httpd-php .php .php3 RemoveType application/x-httpd-php-source .phps </Directory> Regards Sigurd
_______________________________________________ Phpgroupware-developers mailing list Phpgroupware-developers@gnu.org http://lists.gnu.org/mailman/listinfo/phpgroupware-developers