Categories
How to get a list of all domains on a server?
Good day. There is a server with a huge number of sites, a bunch of users, and so on. Is it possible to somehow quickly and painlessly get a list of all domains that are on this server?
Answer the question
In order to leave comments, you need to log in
grep server_name /etc/nginx/sites-enabled/* -RiI or nginx -T | grep "servername"
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question