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)

Jools Wills buzz at
Thu Jun 18 15:17:31 MSD 2009

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 ?

Best Regards


More information about the nginx mailing list