Reply
Old 01-04-2009, 10:41 PM .htaccess mod_gzip
Experienced Talker

Posts: 39
Name: Craig
Trades: 0
Just to clarify, I know pretty much nothing about .htaccess code. My question is, when I have this code in my .htaccess file,
Code:
Order deny,allow
ExpiresActive on
ExpiresDefault A15768000
RewriteEngine  on
RewriteCond %{HTTP_USER_AGENT} Wget [OR] 
RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR] 
RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR] 
RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR] 
RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR] 
RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR] 
RewriteCond %{HTTP_USER_AGENT} ExtractorPro 
RewriteRule ^.*$ deny.html [L]
DirectoryIndex index.html index.htm index.php
everything works peachy keen. When I add this:

Code:
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
# Save temporary work files [Yes, No]
mod_gzip_keep_workfiles No
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_handle_methods GET POST
###############
### filters ###
###############
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
# HTML, CGI scripts, PHP
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
I get a 500 Internal Server Error. Where exactly did this code go wrong?
werm82 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 01-06-2009, 04:52 AM Re: .htaccess mod_gzip
mtishetsky's Avatar
King Spam Talker

Posts: 1,166
Name: Mike
Location: Mataro, Spain
Trades: 0
Look at your error log first
__________________
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 01-09-2009, 02:27 PM Re: .htaccess mod_gzip
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,552
Name: Keith Marshall
Location: West Hartford, CT
Trades: 0
I would think you need to close your IfModule, but I'm not completely sure
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to .htaccess mod_gzip
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12731 seconds with 13 queries