On Thu, Oct 16, 2014 at 8:25 PM, igorb <[email protected]> wrote:
> I tried that, but it still does not work. The following config as before
> still gives 404 for localhost/x/test.html :
>
> server {
>         listen 8080 default_server;
>         root /usr/share/nginx/html;
>         autoindex on;
>
>         location /x/ {
>                 alias /test/;
>         }
>
>         location ~ ^/x/(test.*)$ {
>                 alias /test/$1;
>                 try_files /test/$1 =404;
>         #       try_files $uri =404;
>         }
> }
>

Have you tried removing the alias?

location ~ ^/x/(test.*)$ {
  try_files /test/$1 =404;
}

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to