#Getting nginx 500

1 messages · Page 1 of 1 (latest)

rustic path
#

Why am I getting this 500 error instead of the nginx webpage and how can I fix it ?

sudden flicker
#

Errors that start with 500 are server errors, I would be looking for logs and configuration files for the server

rustic path
# sudden flicker Errors that start with 500 are server errors, I would be looking for logs and co...

https://pastebin.com/Ztwd7y92 > nginx conf
but this is pretty much the only thing in error.log

2023/06/24 21:19:56 [alert] 45356#45356: aborting
2023/06/24 21:20:07 [alert] 45605#45605: *2 open socket #15 left in connection 3
2023/06/24 21:20:07 [alert] 45605#45605: aborting```
sudden flicker
#

have not used nginx myself, so not sure what those alerts mean

#

are you accessing the site on port 80 or 433 ?

#

if on 433, you have not configured SSL for encryption and could very well be the problem

rustic path
sudden flicker
#

comparing your conf with one from pterodactyl nothing seems to be wrong really, unless you have different paths and those need to be updated ?

#

I could cut out the first server section as you are not using SSL (433) anyways, also to me it looks like it is trying to do a redirect to https URL which is SSL (433), so it redirects to the same place

#

perhaps you meant to redirect to http (without the 's') so it would land on your non-ssl site

sudden flicker
#

try removing the first server section, make sure you visit the site using http instead of https

rustic path
azure mason
#

You're redirecting the https to https... Port 443 is https, 80 is the unsecured http

#

Also you're requesting an IP address, I'm pretty sure nginx isn't gonna route you to the server you've configured since it has a server name... Been a while since I used nginx

sudden flicker
#

unless you have been poking around in system configuration hosts file and fake a DNS name

azure mason
#

Their error page shows they requested the IP address

sudden flicker
#

ah yeah