Browser cache i yapamayan arkadaşlar için :

Ssh da ..

nano /usr/local/apps/nginx/etc/conf.d/common

Dedikten sonra en ctrl + v ile en alta inin ve boş yere

Alltaki komutları yapıştırın ctrl + x + enter dedikten sonra

service nginx restart yapmayı unutmayın..

Artık Gtmatrix ve Google pagespeed de en düşük değeriniz %90 olacaktır

# Cache static files for as long as possible
location ~* .(xml|ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
try_files $uri =404;
expires max;
access_log off;
}
# Deny access to hidden files
location ~* /.ht {
deny all;
access_log off;
log_not_found off;
}


Ek Olarak:


Merhaba hocam php-fpm config dosyasını bulamıyorum webuzo da ?

Bu ayarların yapıldığı config dosyası hangi dizinde.

/etc/php-fpm.d/

bir kaç yola baktım bunun gibi yinede bulamadım.

pm. ile başlayan ayarları düzenliyeceğim kendi siteme göre.

EDIT2: My own php-fpm config is as follows:

[example.com]
listen = /var/run/sockets/example.com.socket
user = www-data
group = www-data
pm = dynamic
pm.start_servers = 5
pm.max_children = 15
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 500
php_flag[expose_php] = off
php_flag[short_open_tag] = on

Ek Olarak: Hocam birde şu var :

location ~ \.php$ {
# Pass the PHP files to PHP FastCGI for processing

fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
}
}

web uzo otomatik oalrak fastcgi_pass 127.0.0.1:9000; ip üzerinden çalıştırıyor php-fpm , bunu sock a nasıl alabiliriz. mesela örnek kodlar var internette gezinen. fastcgi_pass unix:/var/run/php5-fpm.sock; bu kod gibi ama webuzo da bu yolda birşey yok, php5-fpm.sock yolunu nasıl bulabiliriz ? php-fpm i sock a alınca cpu sorunu ortadan kalkıyormuş