title: How can I list all vhosts in nginx
body: <p>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.</p>
  
  <p>I'm looking for something similar to this command that I use for Apache:</p>
  
  <p>apachectl -S 2>&amp;1 | grep 'port 80'</p>