Skip to content

Instantly share code, notes, and snippets.

@craigpalermo
Created December 20, 2016 01:07
Show Gist options
  • Save craigpalermo/416a61c2caf77b834c8a46f8f0e517ea to your computer and use it in GitHub Desktop.
Save craigpalermo/416a61c2caf77b834c8a46f8f0e517ea to your computer and use it in GitHub Desktop.
Prints ServerName line of each enabled Apache site configuration (so you can see which subdomains you're hosting)
ls /etc/apache2/sites-enabled/* | xargs cat | grep ServerName | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment