V
V
Vladimir2015-06-22 17:18:09
Nginx
Vladimir, 2015-06-22 17:18:09

How to configure rtf compression in nginx?

Registered in the nginx config


gzip on;
gzip_disable "msie6";
gzip_variable on;
gzip_proxied any;
gzip_comp_level 9;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/msword application/x-font-ttf application/rtf;

Log format
log_format check_if_gzipped '$remote_addr - $remote_user [$time_local] "$request" $status $sent_http_content_type "$gzip_ratio" $body_bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access_proxied.log check_if_gzipped;

In the log we have
192.168.6.1 - - [22/Jun/2015:17:06:55 +0300] "GET /ords/f?p=120:380:566964001675974:APPLICATION_PROCESS=Print_Doc_Sert:::F_DOC_ID,P380_LANG,F_DOCI_ID:304022,UKR , HTTP/1.1" 200 application/msword; name= "-" 19330071 " mysite.site.local/ords/f?p=120:380:566964001675974... " "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0"

Didn't even try to compress

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-06-24
@liff

www.mimeapplication.org/rtf.html
text/rtf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question