deflate

少しばかりdeflate
昔からどこかのサイトマネしといて設定を変えてない

#DEFLATE
SetOutputFilter DEFLATE

DeflateCompressionLevel 3

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary


なんでもカンでもdeflateしちゃってもいい気がしてくる。


deflateのログ

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%) %{User-agent}i' deflate
CustomLog logs/deflate_log deflate


とりあえずいらないから入れてない。

X-Powered-Byヘッダ

X-Powered-Byヘッダ 消すときは、

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://php.net/expose-php
expose_php = Off


Offにする。

シェルでrsyncのパスワード入れる

expect -c 'spawn rsync -avz --delete xxx@yyy:/zzz/ /zzz/backxxx/; expect "*?assword:*" {send "password\r"; interact};'


expectで行ってくれた。

expectは対話的にコマンド実行してくれる。。。。。





クライアントのIPが動的だったからこれは助かったかも。