on-internet
← Community

How can I list all vhosts in nginx

Stack Overflow ·

Is there a command that will list all vhosts or servers running under nginx on CentOS? I would like to pipe the results to a text file for reporting purposes. I'm looking for something similar to this command that I use for Apache: apachectl -S 2>&1 | grep 'port 80'

Comments

Sign in or sign up to comment and upvote.

No comments yet.