need help

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

need help

Gregory Edigarov
hello,

I have an app under /var/www/admin/dist:

index.html

bundle.js

static/

and a bunch of files under static/

  i need nginx to get these files  when I access
https://somesite.net/admin/, not files from /admin.

is that possible?

thanks.

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: need help

A. Schulze


Am 25.10.2017 um 17:30 schrieb Gregory Edigarov:

> hello,
>
> I have an app under /var/www/admin/dist:
>
> index.html
>
> bundle.js
>
> static/
>
> and a bunch of files under static/
>
>  i need nginx to get these files  when I access https://somesite.net/admin/, not files from /admin.
>
> is that possible?

should be possible: https://nginx.org/r/alias

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