Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: subpath option not forwarding properly through reverse proxy #3569

Open
2 tasks done
Martenson426 opened this issue Nov 14, 2024 · 1 comment
Open
2 tasks done
Labels
help wanted Extra attention is needed

Comments

@Martenson426
Copy link

Martenson426 commented Nov 14, 2024

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
@vladmandic vladmandic added the help wanted Extra attention is needed label Nov 14, 2024
@vladmandic
Copy link
Owner

marking as help-wanted as i do not use subpath myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants