Skip to content

Instantly share code, notes, and snippets.

@DavidAntaramian
Last active October 11, 2015 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidAntaramian/3856065 to your computer and use it in GitHub Desktop.
Save DavidAntaramian/3856065 to your computer and use it in GitHub Desktop.
WordPress Networks and Domain Mapping on Apache 2.x
<VirtualHost *:80>
ServerAdmin admin@example.net
ServerName blogs.example.net
# Blogs with their own domain
ServerAlias fred.example.net
ServerAlias maria.example.net
# External domains can be added, so long as they resolve to this server
ServerAlias excellentcustomerservice.example
ServerAlias www.fredscoolblog.example
DocumentRoot /var/www/blogs.example.net/html
ErrorLog /var/log/apache2/blogs.example.net-error.log
CustomLog /var/log/apache2/blogs.example.net-access.log combined
Options +FollowSymLinks
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment