Вот такой конфиг Nginx - в качестве иллюстрации к материалу
Nginx | php-fpm и joomla
- вполне работоспособен под Joomla 3.
Code:
server {
listen 80;
server_name XXXXXXXXXXXX;
server_name_in_redirect off;
access_log /var/www/logs/nginx-access.log;
error_log /var/www/logs/nginx-error.log info;
root /var/www;
index index.php index.html index.htm default.html default.htm;
# Support Clean (aka Search Engine Friendly) URLs
location / {
try_files $uri $uri/ /index.php?$args;
}
location /index.html {
rewrite // permanent;
}
# deny running scripts inside writable directories
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
return 403;
error_page 403 /403_error.html;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www:/tmp:/var/lib/sessions:/var/www/tmp:/var/www/log";
include /etc/nginx/fastcgi.conf;
}
# caching of files
location ~* \.(ico|pdf|flv)$ {
expires 1y;
}
location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
expires 14d;
}
}