<div>Hi,<br></div><div><br></div><div>This will be an absolute beginner question. Sorry about that. What I want to do is, I want to serve all files under <a href="http://localhost/static">http://localhost/static</a> from /home/myname/public_html/static</div>
<div><br></div><div>My configuration regarding that part:</div><div><br></div><div><br></div><div>location ~ /static/* {<br>                root /home/yasar/public_html/;<br>        }<br></div><div><br></div><div>I have put index files just to test it in ~/public_html/static adming folder under static folder and css folder under admin folder and I can see all of index.html files. But when I try to get an css file there, I get this error (from error log):<br>
</div><div><br></div><div>2011/07/20 00:42:27 [error] 7749#0: *1 open() &quot;/etc/nginx/html/static/admin/css/ie.css&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /static/admin/css/ie.css HTTP/1.1&quot;, host: &quot;localhost&quot;</div>
<div><br></div><div>appereantly, my root directive doesn&#39;t work some reason. Any help would be appriciated.</div><div><br></div><div>Yaşar Arabacı.</div>