I'm having some issues with my wordpress blog setup. The main page http://server.com/blog/ loads fine, but http://server.com/blog (without the /) doesn't. Also, none of my pretty urls work.
I know I'm missing something obvious. I'd really appreciate some help.
Here's my server's conf
server {
server_name www.example.com;
rewrite ^ http://example.com$request_uri? permanent;
}
server {
listen 80;
server_name example.com;
access_log /srv/www/example.com/logs/access.log;
error_log /srv/www/example.com/logs/error.log;
root /srv/www/example.com/application/public;
passenger_enabled on;
location /blog {
try_files $uri $uri/ /blog/index.php?q=$uri&$args;
include fastcgi_params;
if ($uri !~ "^/uploads/") {
fastcgi_pass 127.0.0.1:9000;
}
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}