Google Analytics

2010/07/29

Using mod_proxy without access log

Apache's module mod_proxy gives me a proxy server, but the access log is complex with non-proxy access in easy way.
Edit the httpd.conf.
Enable mod_proxy
<IfModule mod_proxy.c>
ProxyRequests On
#
<Proxy *>
    Order deny,allow
    Deny from al
    SetEnvIf Remote_Addr "127\.0\.0\.1" localnet=1
    SetEnvIf Remote_Addr "192\.168\.1\.*" localnet=1
    allow from env=localnet
</Proxy>
ProxyVia off
</IfModule>
and I changed the CustomLog Line.
CustomLog logs/access_log combined env=!localnet
After edit the file, restart apache.

done :-)

anyway, pizza hut is now 10 bucks in US... Why so cheaper than Japan..
In Japan, we have to pay over 15 bucks (1600JPY + Delivery cost. there are no dine in expect stupid PizzaHut Natural) at Pizza Hut.

0 件のコメント:

コメントを投稿