I
I
invisii2019-07-25 10:32:37
Nginx
invisii, 2019-07-25 10:32:37

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

1 answer(s)
A
Anton B, 2019-07-25
@invisii

grep server_name /etc/nginx/sites-enabled/* -RiI
or
nginx -T | grep "servername"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question