Config Problem for Wordpress 2.5

Todd HG lists at
Sun Apr 13 21:10:20 MSD 2008

I'm getting black pages when trying to get to the web site, but I can 
navigate around the Wordpress control panel just fine. I can't see my 
error. Here's my entire config:

user  nobody;
worker_processes  2;

pid        /usr/local/nginx/logs/;

events {
        worker_connections  12000;
        use epoll;

http {
    include       /usr/local/nginx/conf/mime.types;
    default_type  application/octet-stream;

    expires       1M;
    add_header    Cache-Control  must-revalidate;
    add_header    Cache-Control  public;
    server_tokens off;

    client_header_timeout  3m;
    client_body_timeout    3m;
    send_timeout           3m;

    gzip on;
    gzip_min_length  1100;
    gzip_buffers     4 8k;
    gzip_http_version 1.1;
    gzip_proxied any;
    gzip_types   text/css application/x-javascript;
    gzip_comp_level 5;

    sendfile       on;
    tcp_nopush     on;
    tcp_nodelay    on;
    keepalive_timeout  5 5;

    server_names_hash_bucket_size 128;

    server {
        listen       my-ip-address:80;

        location / {
        root    /var/www/mydomain;
        index  index.php index.html index.htm;

        if (-f $request_filename) {
            expires 30d;

        if (!-e $request_filename) {
            rewrite ^(.+)$ /index.php?q=$1 last;
        error_page  404    ;

location ~ \.php$ {
     fastcgi_index index.php;
     fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
     fastcgi_param  SERVER_SOFTWARE    nginx;
     fastcgi_param  QUERY_STRING       $query_string;
     fastcgi_param  REQUEST_METHOD     $request_method;
     fastcgi_param  CONTENT_TYPE       $content_type;
     fastcgi_param  CONTENT_LENGTH     $content_length;
     fastcgi_param  SCRIPT_FILENAME 
     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  SERVER_PROTOCOL    $server_protocol;
     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  REDIRECT_STATUS    200;

valid_referers none blocked;
      if ($invalid_referer) {
            # return   404;
      rewrite  ^(.*)$;
    deny blocked-ip;
        allow all;

Posted via

More information about the nginx mailing list