Maybe <div><span style="font-family:arial,sans-serif">location /video/ {</span><br style="font-family:arial,sans-serif"><span style="font-family:arial,sans-serif">   root /home/documents/;</span><br style="font-family:arial,sans-serif">

<span style="font-family:arial,sans-serif">}</span></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">?<br></font><br><div class="gmail_quote">2012/3/6 adam estes <span dir="ltr"><<a href="mailto:wtymdjs@gmail.com">wtymdjs@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to create a link so /video will pull from somewhere other then<br>
the document root.<br>
<br>
I would just move this over, but this have dynamic files of multiple<br>
gb that I need to load, so its easier to leave them there.<br>
<br>
First I tired using alias<br>
<br>
location /video/ {<br>
    alias /home/documents/;<br>
}<br>
<br>
location ~ ^/video/(.+\.php)$ {<br>
    alias /home/documents/$1;<br>
    fastcgi_pass   unix:/tmp/phpfpm.sock;<br>
    fastcgi_index  index.php;<br>
    fastcgi_param  SCRIPT_FILENAME  $request_filename;<br>
<br>
    # From fastcgi_params<br>
    fastcgi_param  QUERY_STRING       $query_string;<br>
    fastcgi_param  REQUEST_METHOD     $request_method;<br>
    fastcgi_param  CONTENT_TYPE       $content_type;<br>
    fastcgi_param  CONTENT_LENGTH     $content_length;<br>
    fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;<br>
    fastcgi_param  REQUEST_URI        $request_uri;<br>
    fastcgi_param  DOCUMENT_URI       $document_uri;<br>
    fastcgi_param  DOCUMENT_ROOT      /home/documents; # <-- Changed<br>
    fastcgi_param  SERVER_PROTOCOL    $server_protocol;<br>
    fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;<br>
    fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;<br>
    fastcgi_param  REMOTE_ADDR        $remote_addr;<br>
    fastcgi_param  REMOTE_PORT        $remote_port;<br>
    fastcgi_param  SERVER_ADDR        $server_addr;<br>
    fastcgi_param  SERVER_PORT        $server_port;<br>
    fastcgi_param  SERVER_NAME        $server_name;<br>
    fastcgi_param  REDIRECT_STATUS    200;<br>
}<br>
<br>
That only gives me a "No file specified" message when accessing php.<br>
<br>
I then tried a sym link instead (Obviously removing those lines from conf<br>
<br>
ls -s /home/documents/ /home/sites/domain/basketballiq/video/<br>
<br>
Html file will load properly, but php gives me a 502.<br>
<br>
What do I do? :(<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>