That regex doesn’t make a whole lot of sense to me, it matches practically every request with a dot in the path. You could probably use rewrite if you need to get fancy with your regex.
The thing is, I also host different pages, like /srv/somethingelse/index.html, I’m pretty sure setting my root to /srv/filehost would make that not work right? The regex makes all files in filehost/ (typically S0dc.png, so a 4 letter random string with an extension) show up like website.com/S0dc.png instead of website.com/filehost/S0dc.png, which is what I want.
I tried various rewrites and proxies and whatnot and could get nothing similar, that’s what I’m asking here.
because dumping everything in the root is messy, especially if everything is thousands of files. that’s the reason I put these “filehost” files in a separate directory, instead of symlinkling or having them all in root.