Fw: Missing html code using dynagzip
Sorry, I've just hit a wrong button... - Original Message - From: Slava Bizyayev [EMAIL PROTECTED] To: Scott Alexander [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 9:41 AM Subject: Re: Missing html code using dynagzip - Original Message - From: Scott Alexander [EMAIL PROTECTED] To: Slava Bizyayev [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 4:06 AM Subject: Re: Missing html code using dynagzip Well only by experiment I noticed the problem went away. The Compress::LeadingBlankSpaces reduced the bytes sent by still abit. I'm glad to know that... Could the problem be caused by some other setting I have in httpd.conf file? Difficult to say blindly... Thanks, Slava
Re: Missing html code using dynagzip
I guess, your problem is out of Apache::Dynagzip. Please, try to follow: 1. Make sure your script is producing correct response under Apache::Registry. 2. Make sure your script does not have any internal conditional branches on whether it runs under Apache::Registry, or under Apache::RegistryFilter - Apache::Dynagzip. 3. Do your transition from Apache::Registry configuration to Apache::RegistryFilter - Apache::Dynagzip configuration by simple replacement of the line: PerlHandler Apache::Registry with the following two lines: PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On You may optionally add light compression finally if you want. You are not supposed to change any other settings. 4. Let us know details of what you finally have. Thanks, Slava - Original Message - From: Scott Alexander [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:26 AM Subject: Missing html code using dynagzip Hi, When using Files *.pl SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On PerlSetVar LightCompression On Options +ExecCGI PerlSetVar UseCGIHeadersFromScript Off PerlSendHeader Off PerlSetupEnv On /Files this setup with NN 6+ the code ends with /html/html (yes twice) and in IE 6.0 it has just /html (missing the last '' With NN 4.8 it is the same as IE 6.0. Does anyone know why this happens? I've tried putting all my output into one print statement. Makes no difference. Scott
Re: Missing html code using dynagzip
On Mon, 2 Jun 2003, Slava Bizyayev wrote: I guess, your problem is out of Apache::Dynagzip. Please, try to follow: 1. Make sure your script is producing correct response under Apache::Registry. Yes it does 2. Make sure your script does not have any internal conditional branches on whether it runs under Apache::Registry, or under Apache::RegistryFilter - Apache::Dynagzip. No it doesn't 3. Do your transition from Apache::Registry configuration to Apache::RegistryFilter - Apache::Dynagzip configuration by simple replacement of the line: PerlHandler Apache::Registry with the following two lines: PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On Okay now it works! So problem was in my httpd.conf file. Now I only have Directory /usr/local/systems/work/ # AUTH AuthType Apache::Authenticate AuthName protected PerlAccessHandler Apache::OpenAccess PerlAuthenHandler Apache::Authenticate-authenticate require valid-user Files *.html PerlSendHeader On SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI /Files ## DYNA Files *.pl PerlSendHeader On SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On Options +ExecCGI #PerlSetVar LightCompression On # Below not needed ?? #PerlSetVar UseCGIHeadersFromScript Off #PerlSendHeader Off #PerlSetupEnv On /Files /Directory You may optionally add light compression finally if you want. You are not supposed to change any other settings. But if I turn on PerlSetVar LightCompression On the problem comes back. I had tested having this line commented out but it made no difference. Anyway good that it is working. Thanks. Regards Scott 4. Let us know details of what you finally have. Thanks, Slava - Original Message - From: Scott Alexander [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:26 AM Subject: Missing html code using dynagzip Hi, When using Files *.pl SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On PerlSetVar LightCompression On Options +ExecCGI PerlSetVar UseCGIHeadersFromScript Off PerlSendHeader Off PerlSetupEnv On /Files this setup with NN 6+ the code ends with /html/html (yes twice) and in IE 6.0 it has just /html (missing the last '' With NN 4.8 it is the same as IE 6.0. Does anyone know why this happens? I've tried putting all my output into one print statement. Makes no difference. Scott
Re: Missing html code using dynagzip
From: Scott Alexander [EMAIL PROTECTED] To: Slava Bizyayev [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:31 AM Subject: Re: Missing html code using dynagzip Okay now it works! So problem was in my httpd.conf file. Now I only have Directory /usr/local/systems/work/ # AUTH AuthType Apache::Authenticate AuthName protected PerlAccessHandler Apache::OpenAccess PerlAuthenHandler Apache::Authenticate-authenticate require valid-user Files *.html PerlSendHeader On SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI /Files ## DYNA Files *.pl PerlSendHeader On SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On Options +ExecCGI #PerlSetVar LightCompression On # Below not needed ?? #PerlSetVar UseCGIHeadersFromScript Off #PerlSendHeader Off #PerlSetupEnv On These depend on your global settings, and on requirements of your script only. You should never add them for Apache::Dynagzip exclusively. /Files /Directory But if I turn on PerlSetVar LightCompression On the problem comes back. I had tested having this line commented out but it made no difference. Wow! Sounds like the first bug in Compress::LeadingBlankSpaces... Let's talk about that. Compress::LeadingBlankSpaces is prutty simple class. It is not that important when your content is really gzipped, because blank spaces are compressed very effectively. It is mostly required for some old and buggy clients who does not understand gzip really (NN-4.X for instance). BTW do you use Apache::CompressClientFixup? It should help to serve NN-4.X appropriately. Back to Compress::LeadingBlankSpaces, could you send me your version number? Thanks, Slava
Missing html code using dynagzip
Hi, When using Files *.pl SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On PerlSetVar LightCompression On Options +ExecCGI PerlSetVar UseCGIHeadersFromScript Off PerlSendHeader Off PerlSetupEnv On /Files this setup with NN 6+ the code ends with /html/html (yes twice) and in IE 6.0 it has just /html (missing the last '' With NN 4.8 it is the same as IE 6.0. Does anyone know why this happens? I've tried putting all my output into one print statement. Makes no difference. Scott