i trying match paths of particular pattern alias isn't working.
location /*/ { alias /some/path; } my requirement url, e.g. http://<domain>/{variable}, should go alias , bring default page. urls http://example.com/xyz/hello.html , http://example.com/abc/hello.html should resolve same location , refer same page.
how achieve this?
something this:
rewrite ^/(.*)/(.*)$ /$2 last; location / { root /home; }
Comments
Post a Comment