this post was submitted on 21 Nov 2023
1 points (100.0% liked)

Mastodon

23 readers
1 users here now

Mastodon is

Helpful links

Registrations for 'mastodon.social' are often closed, but you can learn more about Mastodon and register with another instance at joinmastodon.org. It doesn't matter which instance you register on - you can still follow anyone on any instance.

If you are looking for service providers that can host and manage an instance for you:

founded 1 year ago
MODERATORS
 

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...

you are viewing a single comment's thread
view the rest of the comments
[โ€“] MrFlibble1980@alien.top 1 points 11 months ago

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 a mastodon.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.