Hello,
i run a Mastodon instance under a domain that is pre-setup by a Hoster, but i want full control so i bought a own VPN and setup mastodon after a Tutorial (https://zap-hosting.com/guides/docs/vserver-linux-mastodon/) it worked like a charm, but…
i cant Configure the Webserver, domain and Certbot to my Domain because i first want to make sure the Mastodon Instance is perfectly working under my IP before i set it up with the Domain and replace my old Server
How do you do that? i started all Services but my IP still only shows a 403 Forbidden Error…
The technical reason is the nginx service is expecting a domain name so it can route it to the right webserver.
You can use nginx to host multiple domains that get sent to different web servers.
For example, i have a
pixelfed.mydomain
and amastodon.mydomain
configured in nginx, which are both hosted on the same server.If you’re just using an IP address, it won’t know where to forward your requests too.
There might be a “default” config you could use, or maybe you could use an IP in the
server_name
option, but it would be less confusing to just get a temporary domain as u/fruey suggests.