#!/Bashblog.net

List available Apache vhosts

Categories: [1-liners]
Tags: [bash]

Do you have a lot of domains hosted on little apache server? Here is quick command to find what vhosts you have:

apache2ctl -S | grep -E "port 443|80" | awk '{print $4}' | sort -u

« Previous Next »