WordpresssMU and NginX
Denis F. Latypoff
denis at gostats.ru
Sat Jan 12 09:24:36 MSK 2008
Hello dika,
Saturday, January 12, 2008, 12:13:06 PM, you wrote:
> 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
cd ..
ls -la | grep images
> 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_
> __________ NOD32 2772 (20080107) Information __________
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
--
Best regards,
Denis mailto:denis at gostats.ru
More information about the nginx
mailing list