Hello!
I’m self-hosting a Ghost blog and would like to run it on a subdirectory from my main domain that is on Leadpages.
Looking at Digital Ocean, I found “Caddy”, but I’m totally new and not used to this.
I need help understanding how to write the Caddyfile, and how to run or activate it.
Also, I have specific URLs today: all my blog articles are parameters.
Meaning I am transitioning from: abc.com/blog/?p=article_1 to abc.com/blog/article_1/.
Do you think it’s possible to setup this inside the Caddyfile? If so, how?
So, far, I have:
abc.com {
redir /blog /blog/
reverse_proxy abc.com/blog/* http://ghost_server_ip:2368
reverse_proxy abc.com/blog/?p=* http://ghost_server_ip:2368
reverse_proxy / myleadpagesip
reverse_proxy /* myleadpagesip/{uri}
}
Also: How do I test it without doing the changes in my Cloudflare yet?
Thank you so much to anyone who helps,
Jeremy