Error with config when upgrading from 0.6.34 to 0.7.59 (the "alias" directive must use captures inside location given by regular expression)

Igor Sysoev is at rambler-co.ru
Thu Jun 18 15:34:06 MSD 2009


On Thu, Jun 18, 2009 at 12:17:31PM +0100, Jools Wills wrote:

> On Thu, 2009-06-18 at 11:41 +0400, Igor Sysoev wrote:
> 
> > You should use just:
> > 
> >   locaiton ~ ^/~([^/]+)(/?.*)$) {
> >       alias /home/$1/public_html/$2;
> >       autoindex on;
> >   }
> 
> will this work since the $homedir part was set in an earlier location.
> 
> or you are saying this is a replacement for all the blocks of code I had
> before ?

Yes, this is full replacememnt.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list