Nginx rewrite for wordpress MU problem
Dave Cheney
dave at cheney.net
Thu Oct 23 11:34:36 MSD 2008
Try this
server {
...
location / {
index index.php;
}
location ~ \.php$ {
include fastcgi.conf;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/root$fastcgi_script_name;
fastcgi_pass unix:/tmp/php-fastcgi.sock;
}
}
Cheers
Dave
On 22/10/2008, at 4:54 PM, Glen Lumanau wrote:
> I've seen on wordpress website for the rewrite rule for nginx
>
>
> But when I access the blog, it always show me http://blog.mysite.com/index.php
>
> How can I rewrite the index.php so that i just have http://blog.mysite.com
> ?
>
>
> Thank's in advance
>
More information about the nginx
mailing list