Alias or Symlink help?

Edho Arief edho at myconan.net
Tue Mar 6 04:13:31 UTC 2012


2012/3/6 adam estes <wtymdjs at gmail.com>:
> I want to create a link so /video will pull from somewhere other then
> the document root.
>
> I would just move this over, but this have dynamic files of multiple
> gb that I need to load, so its easier to leave them there.
>
> First I tired using alias
>
> location /video/ {
>    alias /home/documents/;
> }
>
> location ~ ^/video/(.+\.php)$ {
>    alias /home/documents/$1;
>    fastcgi_pass   unix:/tmp/phpfpm.sock;
>    fastcgi_index  index.php;
>    fastcgi_param  SCRIPT_FILENAME  $request_filename;
>
>    # From fastcgi_params


Try just including fastcgi_params. I never needed to change anything
in that file even when using alias.



More information about the nginx mailing list