file_server icon indicating copy to clipboard operation
file_server copied to clipboard

issue with Nginx reverse proxy

Open oO0oO0oO0o0o00 opened this issue 5 years ago • 0 comments

links to style sheets, scripts and fonts are hard-coded as /-/xxx instead of -/xxx so that the service cannot run behind an Nginx proxy coexisting with other http services on the server with a same domain (actually intranet ip address).

My Nginx is configured to proxy "http://xxx/files/xxx" to "http://xxx:9002/xxx" since file server listens on port 9002.

It's not possible to use simple html rewrite because there can be arbitrary html files in the file system and they're not supposed to be rewritten.

oO0oO0oO0o0o00 avatar Apr 07 '20 07:04 oO0oO0oO0o0o00