# Display problem

**URL:** <https://www.ruby-forum.com/t/display-problem/220498>\
**Category:** NGINX\
**Created:** [June 11, 2012, 8:26pm UTC](https://www.ruby-forum.com/t/display-problem/220498 "2012-06-11T20:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 11, 2012, 8:26pm UTC](https://www.ruby-forum.com/t/display-problem/220498/1 "2012-06-11T20:26:36Z")

</div>

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](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:

> **[display problem](https://forum.nginx.org/read.php?2,227440,227440#msg-227440)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![s1r0n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@s1r0n](https://www.ruby-forum.com/u/s1r0n)\
**Post date:** [June 11, 2012, 8:48pm UTC](https://www.ruby-forum.com/t/display-problem/220498/2 "2012-06-11T20:48:13Z")

</div>

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](http://www.sociology.org), request: “GET  
/wp-content/themes/wp-smooth/images/banner125.gif HTTP/1.1”, host:  
“[www.sociology.org](http://www.sociology.org)”, referrer: “[http://www.sociology.org/](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:

> **[Re: display problem](https://forum.nginx.org/read.php?2,227440,227441#msg-227441)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![s1r0n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@s1r0n](https://www.ruby-forum.com/u/s1r0n)\
**Post date:** [June 11, 2012, 8:57pm UTC](https://www.ruby-forum.com/t/display-problem/220498/3 "2012-06-11T20:57:34Z")

</div>

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:

> **[Re: display problem](https://forum.nginx.org/read.php?2,227440,227442#msg-227442)**
>
> 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...
