Alright. I'm gonna reach out for help cause I'm on day 3 not able to figure this out. Any #mastodon admins out there who can recognize what is going on?

I have installed a mastodon instance on one of my servers and followed the tutorial to a t with no deviations or errors. As soon as I got to the #nginx portion and tried to reboot, it throws this error. I have done nothing but follow all the different #tutorials and it always gets stuck on here. I've even tried different service providers. Anyone know why it's acting like this? #MastodonProblems

The server is Ubuntu 22.04

@itwasntme223 that error means something is wrong (check syntax) of the nginx config file

@pixelnull Is that common with #nginx? (I always preferred #apache so I have no familiarity) cause I made no edits to the config. This is their default generated one that's screwed up.

Thanks for your reply!

@itwasntme223 nginx has a check config function you need to run before restarting

https://adamtheautomator.com/nginx-test-config/

Steering NGINX Test Config Before Screwing it Up

In NGINX test config before you deploy them by learning these tricks of the trade in this step-by-step tutorial.

ATA Learning

@pixelnull Ahhhh. Got it. I just ran it and get the same error [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive. I took a look and that portion is commented out....so theoretically shouldn't it be invisible to the config file?

Sorry about being a dumb ass with this. LOL

@itwasntme223 you may have something else looking for the SSL config

but yes if it's commented out then it should be commented out.

i would sanitize your config and then post it to the nginx subreddit or to an IRC channel. they would be able to tell you more.

i am only a little good with nginx