Skip to content

Instantly share code, notes, and snippets.

@stevenwilkin
Created September 10, 2010 11:45
Show Gist options
  • Save stevenwilkin/573498 to your computer and use it in GitHub Desktop.
Save stevenwilkin/573498 to your computer and use it in GitHub Desktop.
# list all domains apache is configured to listen for on a Fedora Core box
grep -hE 'ServerName|ServerAlias' /etc/httpd/conf/* | grep -v '#' | sed -r -e 's/^\s+//' -e 's/\w+\b //' | tr ' ' '\n' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment