Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th December 2006, 13:54
saigon saigon is offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default mod_deflate together with mod_rewrite ?

I would like to ask for help with the following simple problem - running together mod_rewrite and mod_deflate

with the .htaccess configuration like this (on Apache 2.2.0):

RewriteEngine On
RewriteBase /tmp2
RewriteRule ^index.html$ index.php
SetOutputFilter DEFLATE

I get the request on index.php with compressed content-encoding,
but request on index.html is not compressed at all.
I was playing with order of directives and order of modules declaration in the apache config, but with no success and no idea how to fix this.

???

thanks for any helpfull idea
Reply With Quote
Sponsored Links
  #2  
Old 30th December 2006, 21:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you add this to your configuration?
Code:
DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog /var/log/apache2/deflate_log deflate
What gets logged to /var/log/apache2/deflate_log then?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st December 2006, 15:21
saigon saigon is offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After adding the debug info, I am recieving:

"GET /index.php HTTP/1.1" 200 12/47 (25%)
"GET /index.html HTTP/1.1" 200 -/- (-%)

:-(
Reply With Quote
  #4  
Old 1st January 2007, 20:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

index.php isompressed which is fine. index.html isn't compressed because it isn't delivered to the browser because of your rewrite rule:

RewriteRule ^index.html$ index.php

If someone requests index.html, index.php gets delivered. So everything is as it should be.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.