"alias" directive may not be used inside location given
Fernando Perez
lists at ruby-forum.com
Wed Jul 7 16:32:57 MSD 2010
I don't understand the following error:
the "alias" directive may not be used inside location given by regular
expression
>From the docs it seems possible:
http://wiki.nginx.org/NginxHttpCoreModule#alias
I'm running 0.7.38
Here is my conflictual declaration:
location ~* ^/uploads/([\w\-\/]+\.(jpg|m4v|mp4|ogv|png)) {
alias $rails_path/uploads/production/$1;
}
I want to map the request /uploads/assets/myfile.png to
/uploads/production/assets/myfile.png on disk
Thanks
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list