Welcome! Log In Create A New Profile

Advanced

"alias" directive may not be used inside location given

Fernando Perez
July 07, 2010 08:38AM
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/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

"alias" directive may not be used inside location given

Fernando Perez July 07, 2010 08:38AM

Re: "alias" directive may not be used inside location given

Igor Sysoev July 07, 2010 08:42AM

Re: "alias" directive may not be used inside location given

Fernando Perez July 07, 2010 09:58AM

Re: "alias" directive may not be used inside location given

Fernando Perez July 07, 2010 10:34AM

Re: "alias" directive may not be used inside location given

Denis F. Latypoff July 07, 2010 08:44AM

Re: "alias" directive may not be used inside location given

Fernando Perez July 07, 2010 09:04AM

Re: "alias" directive may not be used inside location given

Maxim Dounin July 07, 2010 11:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready