Welcome! Log In Create A New Profile

Advanced

Making Wordpress Plugins Work With Nginx

September 15, 2011 10:41PM
I'm new to Nginx (Moving from Apache). I'm having a problem where the majority of Wordpress plugin are not working. I'm using Nginx 1.1.3.

Here are my configuration if it can help figuring out the problem

#####nginx.conf
user www-data;
worker_processes 1;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
# multi_accept on;
}

http {
include /etc/nginx/mime.types;

access_log /var/log/nginx/access.log;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

####sites-available/mydomain.com

server {
listen 80;
server_name mydomain.com;

access_log /var/log/nginx/mydomain.com.access.log;
root /var/www/mydomain;
index index.php;

location / {
try_files $uri $uri/ @wordpress;
}

location @wordpress {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /var/www/mydomain/index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
}

location ~ \.php$ {
try_files $uri @wordpress;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/mydomain$fastcgi_script_name;
include fastcgi_params;

Thanks
Subject Author Posted

Making Wordpress Plugins Work With Nginx

damnlinux September 15, 2011 10:41PM

Re: Making Wordpress Plugins Work With Nginx

Ensiferous September 16, 2011 07:35AM

Re: Making Wordpress Plugins Work With Nginx

damnlinux September 16, 2011 08:25PM

Re: Making Wordpress Plugins Work With Nginx

Sylvia September 17, 2011 12:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready