Configuring Teleport 13+ behind Apache 2 as an HTTPS reverse proxy #38426
webvictim
started this conversation in
Show and tell
Replies: 1 comment
-
INFO If you're using Cloudflare, your DNS record can be set to "proxied". Just don't forget to enable websocket support on your website. Thanks @webvictim for this doc ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's how to configure Teleport 13+ behind Apache 2 as an HTTPS reverse proxy.
This was set up on an Ubuntu 22.04 server. You will need Apache version 2.4.47 or higher to support Teleport's connection upgrades.
Notes:
teleport.example.com
with your own public domain.teleport.example.com
, pointing to the external IP address of your Apache servercertbot
which you can supply to Apache:sudo certbot certonly -d teleport.example.com
certbot renew
at least every 90 dayscertbot
.tsh
version 13+ installed locally.tsh
, commands liketsh login
will not work as expected. Check your version withtsh version
and upgrade if necessary./etc/teleport.yaml
:etc/apache2/sites-available/001-teleport.conf
:Once this is done, you must enable the
mod_proxy mod_ssl mod_rewrite
modules, then also enable the001-teleport
site, then restart Apache 2:sudo journalctl -u teleport -f
.sudo tail -F /var/log/apache2/teleport*.log
If you have any issues, post comments here for assistance. We'd also love to hear if you just get it working!
Beta Was this translation helpful? Give feedback.
All reactions