mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #418] How to run webvirtcloud behind nginx with a sub directory #256
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KMFtcy on GitHub (Mar 26, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/418
Hi there. I'm running webvirtcloud service behind a nginx from public network.
The expose url like this: http://domain:port/webcirtcloud/. My nginx config was like :
4001 is where the webvirtcloud service exposed.
When I accessed, I was redirected to : http://domain/accounts/login/ , even the port has been deleted.
How can I config webvirtcloud to satisfy this need ?
@catborise commented on GitHub (Mar 26, 2021):
you should rearange proxy_set_header. we use this as a default config. you can try it.
@KMFtcy commented on GitHub (Mar 26, 2021):
@catborise
Thanks for your reply. I have done what you say but it doesn't work.
The problem is not nginx problem. I can access webvirtcloud actually. The problem is url_root or base_url.
When I access webvirtcloud, it redirect to http://domain/accounts/login/, but it ought to be http://domain/webcirtcloud/accounts/login/ in my case.
Look forward to your further suggestions.
@KMFtcy commented on GitHub (Mar 26, 2021):
By the way, it do fix the port problems. Many thanks for that.
@hfftjp commented on GitHub (Jan 13, 2024):
For your information
This solution is at "apache+mod_wsgi" and commit "
d24d6b037d".