Apache

.htaccess で携帯電話の UserAgent は rewrite しない設定

今現在はこんな感じではないだろうか? (UserAgent の 書式が増えていたらもうすでに間違えているけど、誰かこれがあった方良いとか教えて下さい。) mod_rewrite の事柄 mod_rewrite が load 済み FileInfo が Override 済み .htaccess の事柄 .htaccess に関…

apache の log の config の (CustomLog | ErrorLog) で 日付付き file 名で出力

前から、この箇所を掘り下げて知っておきたかったので、ちょうどいい機会でした。 ttp://httpd.apache.org/docs/2.2/ja/mod/mod_log_config.html#customlog ○rotatelogs の path が OS によって変化する Debian の場合 CustomLog "| /usr/sbin/rotatelogs /v…

ReverseProxy 設定

http://httpd.apache.org/docs/2.2/mod/mod_proxy.htmlこの module も必要!! # a2enmod proxy_httpproxy.conf の変更。 <Proxy *> AddDefaultCharset off Order Deny,Allow #Deny from all #Allow from .example.com Allow from all </Proxy>default などの変更 ProxyPass / h…

meintenance の場合の設定。

RedirectMatch ^(?!/maintenance\.html$) /maintenance.html 同じ server でも使える設定に出来ているはず。 mimic28号でした。