WordpresssMU and NginX

dika andika at agrakom.com
Sat Jan 12 09:13:06 MSK 2008


Dear all,

I've installed WP-MU on my NginX machine, and I got an error log like this:

2008/01/12 13:03:00 [crit] 6082#0: *61 stat() "/home/dika/wp/wp-content/themes/home/images/kubrickbgwide.jpg" failed (13: Permission denied), client: 192.168.21.2, server: 192.168.17.110, URL: "/wp-content/themes/home/images/kubrickbgwide.jpg", host: "192.168.17.110", referrer: "http://192.168.17.110/wp-admin/"

Even though:

[root at ucarp1 images]# ls -l
total 40
-rwxrwxrwx 1 nginx root 4671 Aug 31  2006 audio.jpg
-rwxrwxrwx 1 nginx root 2154 Aug 31  2006 header-img.php
-rwxrwxrwx 1 nginx root  556 Sep  1  2005 kubrickbgcolor.jpg
-rwxrwxrwx 1 nginx root 1043 May 22  2007 kubrickbg-ltr.jpg
-rwxrwxrwx 1 nginx root 1657 May 22  2007 kubrickbg-rtl.jpg
-rwxrwxrwx 1 nginx root 1014 Sep  1  2005 kubrickbgwide.jpg
-rwxrwxrwx 1 nginx root 2443 Sep  1  2005 kubrickfooter.jpg
-rwxrwxrwx 1 nginx root 7868 Sep  1  2005 kubrickheader.jpg


and


                if (!-e $request_filename) {
                rewrite ^(.*)(/wp-content/themes/.*) $2 last;
                rewrite ^/.*$ /index.php last;
                }

Please help me, Im so newbie in this Engine-X.
And I also confuse about file .htaccess with a rewrite engine state like:

RewriteEngine On
RewriteBase /


#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

How can I convert it to NginX rewrite engine ?

Thanks for you're kind attentions.

Regards,
Dika_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080112/a12e834d/attachment.html>


More information about the nginx mailing list