Wordpress+Nginx+super cache help!
11 Replies
Have you configured nginx for your site ? It's unlikely to have picked up your existing settings automatically.
server {
listen 80;
server_name www.topdesignblogs.com topdesignblogs.com;
access_log /home/tony/public_html/topdesignblogs.com/logs/access.log;
error_log /home/tony/public_html/topdesignblogs.com/logs/error.log;
location / {
root /home/tony/public_html/topdesignblogs.com/public;
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/tony/public_html/topdesignblogs.com/public$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
}
Broswser Error Message:
Not Found
The requested URL /uncategorized/test/ was not found on this server.
Apache/2.2.8 (Ubuntu) mod_perl/2.0.3 Perl/v5.8.8 Server at topdesignblogs.com Port 80
Alternatively, you can keep apache running on a different port, and use it purely as a cgi processor.
Which port is the master listening on ? Does this match the port in your nginx configuration (9000) ?
Can you read a phpinfo() page ?
@illusime:
The requested URL /uncategorized/test/ was not found on this server.
Apache/2.2.8 (Ubuntu) mod_perl/2.0.3 Perl/v5.8.8 Server at topdesignblogs.com Port 80
That message is coming from apache, nginx isn't serving your pages, I imagine nginx isn't even running since apache is using port 80 nginx won't be able to bind to it.
Stop apache, disable it from running at startup (or just remove it all together) then start nginx.
> That message is coming from apache
Well spotted
When I look at the source code I cannot find:
"Cached page generated by WP-Super-Cache on YYYY-MM-DD HH:MM:SS".
Instead I see this:
Is the wordpress super cache working? Or is it supposed to be like this with nginx?