How to access to Cockpit via domain instead of IP address #19644
-
Explain what happensHello, Version of Cockpit304 Where is the problem in Cockpit?Unknown or not applicable Server operating systemDebian Server operating system version11 What browsers are you using?Chrome, Safari macOS, Safari on iPhone System logNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
That's not really a cockpit specific question. Do you already have a domain name on your server? If it resolves to the correct IP, what doesn't work? If you don't have a domain name, you need to set one up (this is not trivial, but also this bug tracker isn't the place to give that kind of support). |
Beta Was this translation helpful? Give feedback.
Ah, you have a redirect! That's not just accessing the cockpit port with a domain name then, but it is then a reverse proxy. You need to set up
cockpit.conf
withOrigins=
, please see https://cockpit-project.org/guide/latest/cockpit.conf.5.html and https://github.com/cockpit-project/cockpit/wiki/Proxying-Cockpit-over-Apache-with-LetsEncrypt