Извеждане на списъка на всички виртуални хостове (работещи) в apache2:
Apache2 vhost списък,pff:/var# apache2 -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server example.com (/etc/apache2/sites-enabled/000-default:2)
port * namevhost example.com (/etc/apache2/sites-enabled/000-default:2)
port * namevhost example1.com (/etc/apache2/sites-enabled/000-default:49)
port * namevhost example2.com (/etc/apache2/sites-enabled/000-default:73)
port * namevhost example3.com (/etc/apache2/sites-enabled/000-default:91)
Syntax OKisp2:/var# apache2 -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server isp2.dcable.net (/etc/apache2/sites-enabled/000-default:2)
port * namevhost isp2.dcable.net (/etc/apache2/sites-enabled/000-default:2)
port * namevhost enciklopedia.info (/etc/apache2/sites-enabled/000-default:49)
port * namevhost eseta.org (/etc/apache2/sites-enabled/000-default:73)
port * namevhost gubite.com (/etc/apache2/sites-enabled/000-default:91)
port * namevhost grimirane.com (/etc/apache2/sites-enabled/000-default:109)
port * namevhost pletivo.org (/etc/apache2/sites-enabled/000-default:127)
port * namevhost jenata.org (/etc/apache2/sites-enabled/000-default:144)
port * namevhost mladok.com (/etc/apache2/sites-enabled/000-default:161)
port * namevhost testove.dcable.net (/etc/apache2/sites-enabled/000-default:179)
port * namevhost obiavi.dcable.net (/etc/apache2/sites-enabled/000-default:198)
port * namevhost pchelite.info (/etc/apache2/sites-enabled/000-default:216)
port * namevhost webdesign7.net (/etc/apache2/sites-enabled/000-default:232)
port * namevhost xn--80abls2bib.name (/etc/apache2/sites-enabled/000-default:248)
port * namevhost xn--80abjcmfj6a9b.name (/etc/apache2/sites-enabled/000-default:265)
Syntax OK