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

Behind reverse proxy: Failed Loading Terminal : Websocket connection error #557

Open
sanctimon opened this issue May 3, 2023 · 4 comments

Comments

@sanctimon
Copy link

This is on a brand new installation of Webmin 20.21 on Ubuntu Server 22.04 using the script and then setting up the reverse proxy instructions, according to information in the FAQ.

Terminal works as expected when accessing Webmin using the local network IP:port.

@iliajie
Copy link
Collaborator

iliajie commented May 3, 2023

Hello,

There is a more recent FAQ on a new https://webmin.com/faq website.

@sanctimon
Copy link
Author

Hello @iliajie , I have reviewed this and the only setting I was missing regarding reverse proxy set up was this:

edit /etc/webmin/xterm/config file and add the following line:

host=webmin.example.com

I have now done this, restarted webmin, restarted apache on both reverse proxy and webmin host and the problem remains:

All I see on the miniserv.log is:

192.168.*.* [my gateway's local IP] - username [03/May/2023:12:03:36 +0000] "GET /xterm/ HTTP/1.1" 200 4003

@amitsamanta996
Copy link

Hello,

faq solution works perfectly, but when proxied via cloudflare, recent login ip just says 127.0.0.1
is there any way to get the actual ip.
cloudflare sends the ip in header CF-Connecting-IP

@iliajie
Copy link
Collaborator

iliajie commented Aug 19, 2023

is there any way to get the actual ip.
cloudflare sends the ip in header CF-Connecting-IP

I think you're looking for Trust remote IP address provided by proxies? option which is located in Webmin ⇾ Webmin Configuration: IP Access Control page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants