2012/7/13 Konstantin Svist
<fry.kun@xxxxxxxxx>
úÁÐÒÏÓ ÎÁ /index.php; ÂÜËÅÎÄ ×ÏÚ×ÒÁÝÁÅÔ X-Powered-By: PHP...
ëÏÎÆÉÇ:
š š proxy_hide_header šX-Powered-By; # ÎÅ ÒÁÂÏÔÁÅÔ
š š server š{
š š š š listen š80;
š š š š proxy_hide_header X-Powered-By; # ÎÅ ÒÁÂÏÔÁÅÔ
š š š š location / {
š š š š š š proxy_pass šhttp://localhost:1180;
š š š š š š proxy_hide_header X-Powered-By; š # ÒÁÂÏÔÁÅÔ
š š š š š š location ~ \.php$ {
š š š š š š š š proxy_hide_header X-Powered-By; š # ÒÁÂÏÔÁÅÔ
š š š š š š š š proxy_cache šmycache;
š š š š š š š š proxy_set_header šHost š 'foobar.com';
š š š š š š }
š š š š }
ÐÒÏÝÅ × php.ini ÐÒÏÐÉÓÁÔØ expose = Offš