On Thu, Jun 18, 2009 at 03:13:43PM +0700, Edho P Arief wrote:
> 2009/6/18 Igor Sysoev <is@rambler-co.ru>:
> > On Wed, Jun 17, 2009 at 11:37:58PM +0100, Jools Wills wrote:
> >
> >> I got an error
> >>
> >> the "alias" directive must use captures inside location given by regular
> >> expression in /etc/nginx/sites-enabled/default:70
> >>
> >> Quite a confusing message for me. The line in question.
> >>
> >> alias /home/$homedir/public_html/;
> >>
> >> which comes from
> >>
> >> # For requests starting with a tilde, break them into three components:
> >> # 1. The username, everything after the tilde up to the first slash
> >> # 2. The file location, everything after the username up to the last
> >> slash
> >> # 3. The trailing slash(es)
> >> # Then, rewrite to go to the f~/ branch.
> >> location /~ {
> >>