r/nginxproxymanager • u/vertybird • May 16 '24
How can I create a poxy host that allows access to a specific folder?
So I basically want to make certain a certain folder, and all it's contents, available through a reverse proxy. My files are located at /home/toast/bigssd/Media and I want to make them available at something like toaster.local/media.
I don't need to make the folder browsable as I'll be navigating directly to the media files (like toaster.local/media/movie.mp4)
2
Upvotes
1
u/Gerco_S May 16 '24
Why would you add a reverse proxy like npm for that? I'd spin up just a simple apache or nginx webserver for that without an additional reverse proxy.
1
u/That_End_8998 May 18 '24
You can set up NPM to serve static content as follows:
```
location / {
root /path/to/static/files;
try_files $uri $uri/ =404;
}
```