weird redirect

Roxis roxis at list.ru
Thu Feb 21 21:28:07 MSK 2008


On Thursday 21 February 2008, Almir Karic wrote:
> location /~redduck666 {
>         alias /home/redduck666/static_html;
> }
>
>
> this is what i have, and it works as expected.
>
> than i add:
>
>             location ~ .ogg$ {
>                 access_log /var/log/nginx/ogg.log;
>             }
>
> now, when i try to access /~redduck666/<anything>.ogg nginx behaves
> weirdly:
>
> 2008/02/21 19:14:49 [error] 10444#0: *1985762 open()
> "/usr/html/~redduck666/file.ogg" failed (2: No such file or
> directory), client: 89.142.54.200, server: static.kiberpipa.org,
> request: "GET /~redduck666/file.ogg HTTP/1.1", host:
> "static.kiberpipa.org", referrer:
> "http://static.kiberpipa.org/~redduck666/"
>
>
> i have NO idea where it got the /usr/html part, it is not mentioned
> anywhere in my config.
>
> any pointers on what i am doing wrong?

firs read how nginx uses location





More information about the nginx mailing list