document root problem?

flash nginx-forum at
Sat Mar 13 02:17:58 MSK 2010

I am running a wordpress setup with nginx and I have an error that I haven't been able to track down. In my log files I'm getting a lot of errors like this:

" 17434#0: *140 open() "/home/tcb/public_htmlon" failed (2: No such file or directory) ... "

This is causing a lot of my pages to not load. My document root is /home/tcb/public_html without the "on" This error is not isolated to any particular file or script (i.e. getting it for phpmyadmin, wordpress pages, etc) but it is not consistent.

For example - here is a rewrite rule I have in place: (using the wordpress plugin and rewrites)

location / {
     rewrite log on;  //side question - where does this write too?
     rewrite ^/([0-9]+)/([_0-9a-zA-Z-]+)/?$ $theme/listing.php?mls=$1 last;
     rewrite ^/([0-9]+)/([_0-9a-zA-Z-]+)+.html?$ $theme/listing.php?mls=$1 last;
     rewrite ^/([0-9]+)/?$ $theme/listing.php?mls=$1 last;
     try_files   $uri $uri/ @wordpress;

This address works -
and this one fails - 
with a 404 file not found error

The second one puts an entry in the error log with the error I gave above.

I very happy with the speed increase from nginx - but frustrated by this issue

Thank you


Posted at Nginx Forum:,63269,63269#msg-63269

More information about the nginx mailing list