<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,&nbsp;<div><br><div><div><div>On Jul 30, 2010, at 8:31 PM, heimdull wrote:</div><br><blockquote type="cite"><div><br>index.php is displayed in the browser correctly so my question is why<br>does the @www location not correctly handle the php file?<br><br></div></blockquote>its because index.php is a real file. It never gets passed off to @www. try_files is for testing real files on the filesystem. And returns that url if it is successful. If it is unsuccesful it is passed off to @www.&nbsp;</div><div><br><blockquote type="cite"><div>This all started when I tried to setup one nginx server that has<br>multiple php sites under one url that needs a alias for the other sites.<br>Something like this:<br><br>root /var/www/somesite;<br><br>location / {<br> &nbsp;&nbsp;&nbsp;index.html index.php;<br>}<br>location /wordpress {<br> &nbsp;&nbsp;&nbsp;alias /var/www/wordpress;<br> &nbsp;&nbsp;&nbsp;try_files $uri $uri/ @wordpress;<br>}<br>.... <br></div></blockquote></div><br></div></div><div>from the wiki&nbsp;<a href="http://wiki.nginx.org/Wordpress">http://wiki.nginx.org/Wordpress</a></div><div>might try this format</div><div>location /wordpress {</div><div>&nbsp;&nbsp;try_files $uri $uri/ /wordpress/index.php?q=$uri&amp;args;</div><div>}</div><div><br></div><div>and then have your normal php location block for fastcgi settings.&nbsp;</div><div><br></div></body></html>