nginx + wordpress rewrite question
Jaime Magiera
jaime at sensoryresearch.net
Tue Feb 16 21:01:28 MSK 2010
On Feb 16, 2010, at 8:30 AM, Edho P Arief wrote:
> you forgot fastcgi_pass.
> and QUERY_STRING is not needed.
OK, that would give me what's copied below. However, I'm still getting a download of the php when I navigate to /blog instead of the php content. Every other .php file in the wordpress directory is working. Any other thoughts? This is stumping me.
index index.php index.html;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass localhost:9000;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include /opt/nginx/conf/fastcgi_params;
}
location /blog {
passenger_enabled off;
index index.html index.htm index.php;
try_files $uri $uri/ @blog;
}
location @blog {
include /opt/nginx/conf/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/blog/index.php;
fastcgi_pass localhost:9000;
}
Jaime Magiera
Sensory Research, Inc.
http://www.sensoryresearch.net
More information about the nginx
mailing list