Nginx Config
i was attempting to install an application called zulip on the server I host pterodactyl on(I didn't realize zulip was designed to be the only application running on any server its given) and now i can't access my panel due to nginx's configs being messed up. Anyone have the nginx.conf config file that should be used normally for ubuntu 22.04?(I never had to configure it after setup it just worked when I tried it)
6 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by lavaking46#0
Stack Overflow
How can I restore /etc/nginx?
By mistake I have removed /etc/nginx directory in my ubuntu 11.10 PC. How can I restore the ngnix directory in /etc/nginx ?
I did these commands:
sudo su
rm -rf /etc/nginx
I want to get again /etc/
maybe?
that is if I deleted the entire thing
I only messed up one file(that I know of)
I did try to reinstall nginx with no success
How is pterodactyl hosted? Just on bare-metal?
I mean unless you are using nginx for something else it should be fine.
You are asking for the default config so I'll assume you know what to edit for it to work with pterodactyl. In this case you could follow the result of stack overflow.
Also I'm not sure how zulip messed with the config but you might still have the default config in etc/nginx/sites-available/default
well it ended up working after completely uninstalling and reinstalling nginx in the manner they used
pterodactyl was indeed hosted on bare-metal
the zulip program overrode the nginx.conf file that controls a lot of how the server works. then after I fixed that problem it had actually gone in and redone the redis server as well which broke the pterodactyl install even more.
so TLDR if you install zulip with anything you at minimum will need to reinstall nginx and change redis config