server {
listen 80;
server_name {server_name};
root /var/www/vhosts/joomla;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
# deny running scripts inside writable directories
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
return 403;
}
location ~ \.php$ {
fastcgi_pass phpfpm;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}画像などのcacheの設定は入れていません。
公式の設定はこちら
http://docs.joomla.org/Nginx


