Skip to content

Instantly share code, notes, and snippets.

@palexander
Created January 7, 2012 01:48
Show Gist options
  • Save palexander/1573441 to your computer and use it in GitHub Desktop.
Save palexander/1573441 to your computer and use it in GitHub Desktop.
Wildcard subdomain setup
# Two new A records
*.stage.bioontology.org 171.67.213.48
*.bioportal.bioontology.org 171.67.213.45
### Apache configuration
#
# Your VirtualHosts section
#
NameVirtualHost 1.2.3.4
##
# this one accepts any subdomain
##
<VirtualHost 11.22.33.44>
DocumentRoot /www/subdomain
ServerName www.domain.tld
ServerAlias *.domain.tld
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment