aris
1
Hi all, i have just recently installed nginx. it works great but
periodically the pages get all messed up. like now on this page
http://www.sociology.org
i posted an article and then tried to view but it’s all messed up after
that. nginx seems to be working other than this weird display problem
can anybody help? i’ve tried everytying including rebooting
Posted at Nginx Forum:
s1r0n
2
here is an update. I am getting this error in the rror log
2012/06/11 14:46:37 [error] 3554#0: *70 open()
“/home/httpd/sociology.org/wp-smooth/images/banner125.gif” failed (2: No
such file or directory), client: 87.151.182.62, server:
www.sociology.org, request: “GET
/wp-content/themes/wp-smooth/images/banner125.gif HTTP/1.1”, host:
“www.sociology.org”, referrer: “http://www.sociology.org/”
but the files that are in the path exist, and a readable. if i reload
apache the webspace displays just fine
Posted at Nginx Forum:
s1r0n
3
Well, as it turns out the problem is this. I have the following
rewrites for the server but these break the installation.
location ~*
^.+.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
rewrite
^/.(/wp-./..(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$
$1 last;
rewrite
^./files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$
/wp-includes/ms-files.php?file=$1 last;
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate,
proxy-revalidate";
break;
}
can somebody tell me how to include these rewrites so wordpress images
work properly
Posted at Nginx Forum: