I’d like to set up subdomains for my apps, but can’t seem to wrap my head around how to do it.
In other words, I’d like https://nextcloud.example.com/index.php/apps/calendar/
to become https://calendar.example.com
I’m running Nginx, and I think this is doable with proxy_pass and rewrite, but yeah… I have no idea on how regexp works and I’m very unsure on how rewrite works at all.
Does anyone have any idea on how to do this? I’d be forever grateful.
Sorry, I should have been more clear. I already know the basics of reverse proxying and SSL certs. For some reason a simple proxy_pass doesn’t work, so there’s some need for rewrite, I think.