Setup:
Ubuntu 20.04
VPN Unlimited
Nginx
Problem:
One of the uses for my server is to host a publicly accessible Nextcloud (file storage) instance. I have a domain name that periodically corrects itself to my public IP.
Without the VPN, the site works fine but with it on (and the domain pointing to the VPNs IP), it’s no longer accessible and I’m shown the default nginx “Welcome to nginx!” screen (which doesn’t seem to be my nginx instance because I’ve stopped the service).
I’m running the server behind VPN so that my traffic is encrypted as I also use my server for other stuff.
Considering it’s a public VPN (worth noting because I assume I will be assigned a random port by the VPN provider so maybe this is where I get blocked?), is it possible to have my server running on the VPN and still be publicly accessible?
End Goal:
Whether it’s through a VPN or some other utility, I want all (or better still just a single port) of my traffic encrypted and away from prying eyes
Networking is utterly confusing to me so any help would be appreciated