1. The problem I’m having:
I’m trying to setup a simple reverse proxy using two servers. I have setup the two web servers using Ubuntu 23.10 x64. My web app, soulpickleball.com, is on one with nginx php, mysql, and php. It is a very simple web site with two pages.
My Caddy server is setup with only Ubuntu and Caddy. I have Caddy installed as a service on the Ubuntu server and it seems to be running correctly.
soulpickleball.com now points at the IP for the Ubuntu server (it was initially pointed at my web app). My reverse proxy points to the IP for the web app server.
When I go to https://soulpickleball.com it just sits there with no feedback. I see nothing in the logs. It seems I have a fundamental misunderstanding of how to setup a reverse proxy. (Sorry I couldn’t provide a ‘curl -vL’ for this, but I’m not sure how to do it. If you can help with this I’m happy to post any results).
2. Error messages and/or full log output:
No error messages and nothing in the logs according to 'journalctl -u caddy --no-pager | less +G' It just leaves a dead page.
3. Caddy version:
v2.7.5 h1:HoysvZkLcN2xJExEepaFHK92Qgs7xAiCFydN5x5Hs6Q=
4. How I installed and ran Caddy:
I installed Caddy on our Ubuntu server using the instructions for Debian, Ubuntu, Raspbian found on your site. Everything went quite smoothly and Caddy seems to be running as a service.
a. System environment:
1 GB Memory / 25 GB Disk / SFO3 - Ubuntu 23.10 x64
Very plain Ubuntu server with nothing else installed. systemd yes, docker no.
b. Command:
Not currently using any commands, running Caddy as a service. Using a Caddyfile for config.
c. Service/unit/compose file:
Using systemd but nothing else.
d. My complete Caddy config:
Very simple at this point:
https://soulpickleball.com {
# Another common task is to set up a reverse proxy:
reverse_proxy https://146.190.125.203 {
header_up Host soulpickleball.com
}
}
5. Links to relevant resources:
None currently.
6. Additional comments
My goal is to use the Caddy server to sit between the user and my web app server, handling all the ssl/tls issues. Currently the Caddy server has no certificates setup (hoping that Caddy will handle this). The web app server had a certificate for soulpickleball.com, but since I switched the DNS to point to the Caddy server, I’m not sure it’s valid. But it is important that all communication from the user to → Caddy server → web app server gets encrypted.
Again, I seem to have a fundamental misunderstanding of how all this works, so I’m hopeful someone can straighten me out. With a little direction I’ll understand pretty quickly.