[Issue]: subpath option not forwarding properly through reverse proxy
Martenson426 opened this issue · 1 comments
Issue Description
I have set up a reverse proxy through apache to send the SD webui out to my public domain, on previous builds such as from https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu
and i launch with --listen --subpath StableDiffusion
a web browser on the internet is able to properly load the web page and use it normally. With my installation of SD.Next this same process does not load correctly. I think there is something wrong with how SD.Next handles the subpath flag.
The web page will load from a browser and have the correct UI, but nothing ever seems to be able to communicate with the server. the generate button never sends anything to be generated and the webui console shows endless ERROR ui logMonitor Failed to fetch log: 404 File not found
in the Server Log.
Opening the chrome network browser it is trying to load from URL's such as http://my.domain.net/sdapi/v1/sd-models
and returning with a 404 error, if i manually navigate to http://my.domain.net/StableDiffusion/sdapi/v1/sd-models in the browser then i will get data returned. So my proxy is working correctly but SD.Next isnt including the subpath into the request.
The console output where i launched it from will report
14:14:57-079769 INFO Local URL: http://localhost:7860/
14:14:57-137821 INFO Redirector mounted: /StableDiffusion
which would mean that it did take in the subpath flag so im not sure where this issue would be coming from
I should note, i reconfigured my apache to proxy / reverse proxy to the document root and removed the --subpath flag from SD.Next and from a web browser it will load and run correctly, this is just an issue trying to run it in the subpath.
Version Platform Description
No response
Relevant log output
No response
Backend
Diffusers
UI
Standard
Branch
Master
Model
StableDiffusion 1.5
Acknowledgements
- I have read the above and searched for existing issues
- I confirm that this is classified correctly and its not an extension issue
marking as help-wanted as i do not use subpath myself.