php - Nginx, Wordpress and URL rewriting problems -


trying nginx , wordpress play nicely seems don't understand each other quite yet, in terms of pretty urls , rewriting.

i have following snippet in config file nginx @ bottom (got nginx's wiki page on wp), , keep getting error message in error log, makes me think it's not trying rewrite location.

2011/04/11 09:02:29 [error] 1208#1256: *284 "c:/local/path/2011/04/10/hello-world/index.html" not found (3: system cannot find path specified), client: 127.0.0.1, server: localhost, request: "get /2011/04/10/hello-world/ http/1.1", host: "dev.local:83" 

if can give me direction or pointers or links or suggestions, amazing because i'm stuck. thanks!

nginx

worker_processes  1; pid        logs/nginx.pid;  events {     worker_connections  64; }  http {     include       mime.types;     default_type  application/octet-stream;      sendfile        on;     keepalive_timeout  65;      #gzip     gzip on;     gzip_http_version 1.0;     gzip_comp_level 2;     gzip_proxied any;     gzip_min_length  1100;     gzip_buffers 16 8k;     gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;      # version of ie 6 don't handle compression on mime-types, disable them     gzip_disable "msie [1-6].(?!.*sv1)";     # set vary header downstream proxies don't send cached gzipped content ie6     gzip_vary on;       server {         listen       83;         server_name  localhost  dev.local;         root   c:/local/path;         index  index.php;          location / {             try_files $uri $uri/ /index.php;         }          #pass php scripts fastcgi server listening on 127.0.0.1:9000         location ~ \.php$ {             fastcgi_pass   127.0.0.1:521;             fastcgi_split_path_info ^(.+\.php)(/.+)$;             fastcgi_intercept_errors on;             fastcgi_index  index.php;             fastcgi_param  script_filename  $document_root$fastcgi_script_name;             include        fastcgi_params;         }     }  } 

absolute paths 1 specified gets translated /cygdrive/c/-path if don't have cygwin installed. windows suggest use relative paths if possible. relative nginx directory.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -