slow nginx problem
I can't find any error messages in the log files (nginx, vhosts, php5-fpm).
I have been using http://whichloadsfaster.com/
My default vhost config:
server {
listen 80;
server_name example.net;
rewrite ^ http://www.example.net$request_uri permanent;
}
server {
listen 80;
server_name www.example.net;
access_log /var/log/nginx/access-www.example.net.log;
error_log /var/log/nginx/error-www.example.net.log;
limit_conn zxmplnet 15;
root /srv/www/example.net/www;
location / {
try_files $uri $uri/ /index.php?$args;
}
include /etc/nginx/loc_php.inc;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location /nginx_status {
stub_status on;
access_log off;
}
include /srv/www/example.net/www/nginx.conf;
location ~ /nginx.conf {
deny all;
access_log off;
log_not_found off;
}
}
the /etc/nginx/loc_php.inc:
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm/www.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 1800;
fastcgi_ignore_client_abort on;
}
2 Replies
When you use http://whichloadsfaster.com/
Moral of the story: when using http://whichloadsfaster.com/
and