Quantcast
Channel: 500 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 2443

vincentcox on "[Plugin: Wordfence Security] Nginx Error 503"

$
0
0

I fixed it. It was not related to your plugin. It was a server config problem. My apologies for the trouble.

For anyone that stumbled here via google:

I added this in my config:

(my site runs in web1.sock), if you don't know what this means, don't use this method because it will do more harm than good if wrong used.

location ~ \.php$ {
try_files $uri $uri/ /index.php?$args;
include fastcgi_params;
fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
}
location ~ .php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
fastcgi_index index.php;
include fastcgi_params;
}

and run: sudo service nginx reload


Viewing all articles
Browse latest Browse all 2443

Latest Images

Trending Articles



Latest Images