Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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